* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    padding: 0 1rem 2rem 1rem;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header - logo centered, buttons centered on mobile */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    background: white;
    gap: 1rem;
}

.logo-area {
    display: flex;
    justify-content: center;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 12px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.nav-btn {
    background: #f1f5f9;
    padding: 0.6rem 1.3rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.nav-btn i {
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: #e6edf4;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.search-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-bottom: 2.8rem;
    background: white;
    padding: 1.5rem;
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

.search-card {
    flex: 1;
    min-width: 240px;
}

.search-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.search-title i {
    color: #3b82f6;
}

.bangla-hint {
    font-size: 0.8rem;
    color: #475569;
    background: #f1f5f9;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    margin-left: 8px;
    font-weight: 400;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.input-group input {
    padding: 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: 0.2s;
    font-family: inherit;
    background: #fefefe;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.search-btn {
    background: #0f172a;
    border: none;
    padding: 0.75rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:hover {
    background: #1e293b;
    transform: scale(0.98);
}

.info-hint {
    font-size: 0.7rem;
    margin-top: 8px;
    color: #5b6e8c;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.results-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.order-count {
    background: #eef2ff;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
}

.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.order-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #ecf3fa;
    overflow: hidden;
}

.card-header {
    background: #fafcff;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eef2f8;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.order-badge {
    background: #e6f0ff;
    padding: 0.3rem 1rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e40af;
}

.status-badge {
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #5b6e8c;
}

.info-value {
    font-weight: 500;
    font-size: 0.95rem;
    color: #0f172a;
    word-break: break-word;
}

.courier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
    align-items: center;
}

.courier-link {
    background: #f8fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn.primary {
    background: #0f172a;
    border-color: #0f172a;
    color: white;
}

.action-btn:hover {
    background: #f1f5f9;
}

.product-list {
    margin-top: 0.8rem;
    background: #f9fbfe;
    border-radius: 20px;
    padding: 0.8rem 1rem;
}

.product-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    color: #334155;
}

.product-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 0.5rem 0.2rem;
    text-align: left;
    border-bottom: 1px solid #e2edf7;
}

.product-table th {
    font-weight: 600;
    color: #4b5563;
}

.empty-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 32px;
    color: #5b6e8c;
    font-weight: 500;
}

footer {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding: 1.8rem 0.5rem;
    font-size: 0.85rem;
    color: #4a5b7a;
}

footer a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.refresh-btn {
    background: #0f172a;
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.8rem;
    white-space: nowrap;
}

.refresh-btn:hover {
    background: #1e293b;
    transform: scale(0.98);
}

@media (max-width: 680px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .courier-link {
        max-width: 180px;
    }
    .refresh-btn {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}
