@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-dark: rgba(0, 0, 0, 0.05);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f1f5f9 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GLASSMORPHISM UTILITY ===== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: var(--bg-glass-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== NAVBAR STYLING ===== */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

@media (max-width: 767px) {
    .navbar-container {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 20px;
        gap: 12px;
    }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-main {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    align-items: center;
}

.navbar-main a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-normal);
    flex-shrink: 0;
    position: relative;
}

.navbar-main a:hover {
    background: var(--bg-glass-dark);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.navbar-main a.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-select select,
.navbar-lang select {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.navbar-select select:hover,
.navbar-lang select:hover {
    background: rgba(255,255,255,0.2);
}

.navbar-select select option,
.navbar-lang select option {
    background: #0f4c81;
    color: white;
}

.navbar-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    background: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}

.navbar-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.navbar-btn.logout {
    background: #dc3545;
    border-color: #b91c1c;
}

.navbar-btn.logout:hover {
    background: #b91c1c;
}

.navbar-btn.signup {
    background: #16a34a;
    border-color: #15803d;
}

.navbar-btn.signup:hover {
    background: #15803d;
}

.navbar-btn.signup:hover {
    background: #28a745;
}

/* ===== SCROLLBAR STYLING ===== */
.navbar-main::-webkit-scrollbar,
.navbar-container::-webkit-scrollbar {
    height: 4px;
}

.navbar-main::-webkit-scrollbar-track,
.navbar-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.navbar-main::-webkit-scrollbar-thumb,
.navbar-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
}

/* ===== FOOTER STYLING ===== */
.footer {
    background: linear-gradient(90deg, #0f4c81 0%, #1a5a96 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow-x: auto;
    padding: 5px 0;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.footer-section span {
    font-weight: 500;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
    min-height: calc(100vh - 200px);
}

/* ===== LOADING STATE ===== */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid rgba(79,70,229,0.1);
    border-radius: 50%;
    border-top: 4px solid #4f46e5;
    width: 40px;
    height: 40px;
    animation: spin 0.6s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MESSAGES ===== */
.messages {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-section {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    border-radius: 20px;
    margin: 0 20px 30px;
}

.products-section {
    margin-top: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0;
    border-radius: 20px;
    margin: 40px 20px 0;
}

.products-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a5a96;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 32px 24px;
}

.search-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #312e81;
    background: rgba(79,70,229,0.14);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 12px;
}

.search-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #111827;
}

.search-bar-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.search-input {
    min-width:0;
    min-height:25px;
}

.search-btn {
    min-width: 180px;
}

.card-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.container-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container-card.text-center {
    text-align: center;
}

.glass-effect {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.7);
}

.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
}

.icon-bounce {
    font-size: 2.2rem;
    margin-bottom: 12px;
    animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.link-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    font-weight: 600;
}

.link-arrow:hover {
    text-decoration: none;
    transform: translateX(4px);
}

.info-box {
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(243,244,255,0.95) 100%);
}

.info-box h2 {
    margin-bottom: 30px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79,70,229,0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ===== FORM STYLES ===== */
.auth-page {
    max-width: 480px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 40px;
}

.auth-page h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f4c81;
    font-size: 1.8rem;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d3dce6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 8px rgba(79,70,229,0.2);
    outline: none;
}

.auth-form button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
}

.social-login {
    text-align: center;
    margin-bottom: 20px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #999;
    position: relative;
    font-size: 0.95rem;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #d3dce6;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #d3dce6;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.google-login-btn:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79,70,229,0.2);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 0;
    align-items: stretch;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(15, 76, 129, 0.1);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(15, 76, 129, 0.2);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    min-height: 200px;
}

.product-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.product-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.top-badge {
    background: rgba(79,70,229,0.14);
    color: #312e81;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-card-body p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.product-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.link-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    font-weight: 600;
}

.link-arrow:hover {
    transform: translateX(4px);
}

.product-card .badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    width: fit-content;
}

.product-card .badge-success {
    background: #d1fae5;
    color: #065f46;
}

.product-card .badge-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

.product-card a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-card a:hover {
    text-decoration: underline;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table thead {
    background: #f3f4f6;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

table tr:hover {
    background: #f9fafb;
}

/* ===== REPORT PAGE STYLES ===== */
.report-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    gap: 32px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.page-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.025em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.page-header p {
    margin: 16px 0 0;
    max-width: 600px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

.header-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.header-pill {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.side-card-grid {
    display: grid;
    gap: 24px;
}

.table-grid {
    display: grid;
    gap: 32px;
}

/* ===== PERIOD SUMMARY CARDS ===== */
.period-summary-row {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== REPORT CARDS ===== */
.report-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    position: relative;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.report-card .card-header {
    background: var(--bg-tertiary);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.report-card .card-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.report-card .card-subtitle {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.report-card .card-body {
    padding: 32px;
    display: grid;
    gap: 20px;
}

/* ===== CHART CARD ===== */
.chart-card .card-body {
    padding: 24px 32px 32px;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 360px !important;
}

/* ===== SMALL CARDS ===== */
.card-small .card-body {
    padding: 24px;
}

.card-small .card-header {
    padding: 20px 24px;
}

/* ===== METRICS AND DATA ===== */
.card-metric {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.card-meta,
.card-note {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

.card-note {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== PERIOD CARDS ===== */
.report-period-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    display: grid;
    gap: 16px;
    min-height: 240px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.report-period-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.report-period-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.report-period-card .section-tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.025em;
    font-size: 0.8rem;
    text-transform: uppercase;
    align-self: flex-start;
}

.report-period-card h2 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.05;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.report-period-card p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.period-top-product {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.period-top-product strong {
    color: var(--primary-color);
    font-weight: 600;
}

.period-top-product.no-data {
    color: var(--text-muted);
}

/* ===== ACTIONS AND FORMS ===== */
.report-actions-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.info-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-card .btn {
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition-normal);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: var(--shadow-sm);
}

.info-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.info-card .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.info-card .btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.info-copy {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.inline-form {
    display: grid;
    gap: 16px;
}

.inline-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inline-form label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.inline-form select,
.inline-form input {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.inline-form select:focus,
.inline-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== TABLES ===== */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-scroll table {
    min-width: 700px;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.data-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    z-index: 10;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.02);
    transform: scale(1.002);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== SEARCH AND FILTERS ===== */
.report-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.report-search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.report-search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.report-search-bar input::placeholder {
    color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .report-page {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .report-page {
        padding: 20px 16px;
        gap: 24px;
    }

    .page-header {
        padding: 24px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .header-metrics {
        gap: 12px;
    }

    .header-pill {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .period-summary-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .report-card .card-body {
        padding: 24px 20px;
    }

    .chart-wrapper {
        min-height: 280px;
    }

    .chart-wrapper canvas {
        height: 280px !important;
    }

    .report-period-card {
        padding: 24px 20px;
        min-height: 200px;
    }

    .report-period-card h2 {
        font-size: 2rem;
    }

    .info-card {
        padding: 24px 20px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .table-scroll table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .report-page {
        padding: 16px 12px;
    }

    .page-header {
        padding: 20px 16px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .dashboard-grid,
    .table-grid {
        gap: 20px;
    }

    .report-card .card-header {
        padding: 20px 16px;
    }

    .report-card .card-body {
        padding: 20px 16px;
    }

    .chart-wrapper {
        min-height: 240px;
    }

    .chart-wrapper canvas {
        height: 240px !important;
    }

    .report-period-card {
        padding: 20px 16px;
    }

    .report-period-card h2 {
        font-size: 1.75rem;
    }

    .info-card {
        padding: 20px 16px;
    }

    .report-search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .report-search-bar input {
        max-width: none;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .table-scroll table {
        min-width: 500px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-container {
        height: auto;
        padding: 10px 10px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-main {
        width: 100%;
        order: 3;
        font-size: 0.85rem;
    }

    .navbar-right {
        flex-wrap: wrap;
        gap: 6px;
    }

    .navbar-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
    }

    .footer-section {
        flex-wrap: wrap;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .auth-page {
        padding: 25px;
        margin: 20px 10px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-main a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.text-muted {
    color: #6b7280;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .input-styled {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .search-card {
        padding: 20px;
    }
    
    .product-card-body {
        padding: 15px;
    }
}
