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

html {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 20px 24px;
    width: 100%;
}

header {
    margin-bottom: 30px;
    padding: 24px 28px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.header-text {
    text-align: center;
}

.header-text h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    margin: 0 0 8px 0;
}

.header-text p {
    color: #7f8c8d;
    margin: 0;
}

/* Role Toggle Styles */
.role-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.role-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 32px;
    background: #cbd5e0;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.role-toggle input:checked+.toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.role-toggle input:checked+.toggle-slider::before {
    transform: translateX(28px);
}

.role-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.role-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    transition: color 0.3s ease;
}

.role-toggle input:checked~.role-label .role-text {
    color: #667eea;
}

/* Tab Navigation Styles */
.tab-navigation,
.report-tab-navigation { display: none; }

.tab-btn,
.report-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.tab-btn:hover,
.report-tab-btn:hover { background: #edf2f7; color: #2d3748; }

.tab-btn.active,
.report-tab-btn.active { background: #e6e8ff; color: #4f46e5; box-shadow: inset 0 0 0 1px #c7d2fe; }

.tab-icon {
    font-size: 16px;
}

/* Image icon for sidebar buttons */
.tab-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.flag-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Tab Content */
.tab-content,
.report-content {
    display: none;
}

.tab-content.active,
.report-content.active {
    display: block;
}

/* Left sidebar dashboard layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin-top: 12px;
    width: 100%;
}

.sidebar-nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #718096;
    margin: 4px 4px 8px;
}

.dashboard-main {
    min-width: 0;
    width: 100%;
}

.dashboard {
    width: 100%;
    display: grid;
    gap: 20px;
}

@media (max-width: 900px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar-nav { position: static; }
}

/* Role-based visibility */
.viewer-mode .manager-only {
    display: none !important;
}

/* Force-disable any inline edit hover icon */
.edit-icon-btn {
    display: none !important;
}

.viewer-mode .manager-only-cell {
    display: none !important;
}

/* PIN Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #f7fafc;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    color: #a0aec0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #718096;
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-size: 16px;
}

.pin-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.pin-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pin-error {
    color: #e53e3e;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    min-height: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.dashboard {
    display: grid;
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Grade 5 dashboard cards */
.grade5-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.grade5-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;      /* center children horizontally */
    justify-content: center;  /* center content vertically within card */
    text-align: center;       /* center text for all inner blocks */
    gap: 8px;
}

.grade5-card .grade5-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
}

.grade5-card .title {
    display: flex;
    align-items: center;
    justify-content: center;  /* center icon + text row */
    width: 100%;
    gap: 8px;
    font-weight: 600;
}

.grade5-card .value {
    font-size: 28px;
    font-weight: 700;
    align-self: center;        /* ensure number centers even if overridden */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.grade5-card .subtext {
    color: #666;
    font-size: 12px;
    align-self: center;        /* ensure caption centers */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Editable card styles for manager mode */
.grade5-card.editable-card .value {
    transition: all 0.2s ease;
}

.grade5-card.editable-card .value:hover {
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
}

.grade5-card.editable-card .value:active {
    background-color: rgba(76, 175, 80, 0.2);
}

.card-value-input {
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    padding: 4px;
    background-color: #fff;
    outline: none;
}

.card-value-input:focus {
    border-color: #45a049;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Breakdown tooltip for All Apps Report */
.breakdown-trigger {
    position: relative;
    cursor: help;
}

.breakdown-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: #1f2937;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 150px;
    text-align: left;
}

.breakdown-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.breakdown-trigger:hover .breakdown-tooltip {
    opacity: 1;
    visibility: visible;
}

.breakdown-item {
    margin: 4px 0;
    line-height: 1.4;
}

.breakdown-item:first-child {
    margin-top: 0;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-item strong {
    font-weight: 600;
    margin-right: 6px;
}

/* Comparison styles for cards */
.grade5-card .value .comparison-change,
.grade5-card .subtext .comparison-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    display: block;
}

.grade5-card.has-comparison {
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.card h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

input {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

button {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background: #2980b9;
}

.delete-btn {
    background: #e74c3c;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #c0392b;
}

.save-btn,
.cancel-btn {
    padding: 6px 12px;
    /* match delete button size */
    font-size: 12px;
    /* match delete button font size */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    /* ensure same height */
    width: 75px;
    /* fixed same width for Save & Cancel */
}

.save-btn {
    background: #3498db;
    color: #fff;
}

.save-btn:hover {
    background: #2980b9;
}

.cancel-btn {
    background: #6c757d;
    color: #fff;
    margin-left: 6px;
}

.cancel-btn:hover {
    background: #5a6268;
}

.edit-icon-btn {
    background: transparent;
    color: #3498db;
    border: none;
    padding: 0 6px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

tr:hover .edit-icon-btn {
    opacity: 1;
}

.edit-icon-btn:hover {
    color: #2980b9;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: #e9ecef;
}

.sort-indicator {
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    color: #6c757d;
    opacity: 0.5;
}

.sort-indicator::after {
    content: '↕';
}

.sortable.asc .sort-indicator {
    opacity: 1;
    color: #3498db;
}

.sortable.asc .sort-indicator::after {
    content: '↑';
}

.sortable.desc .sort-indicator {
    opacity: 1;
    color: #3498db;
}

.sortable.desc .sort-indicator::after {
    content: '↓';
}

tr:hover {
    background-color: #f8f9fa;
}

/* Keep action cell buttons on one line */
.manager-only-cell {
    white-space: nowrap;
}

/* Stack Save and Cancel vertically during inline edit */
.inline-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}



@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
        overflow-x: hidden;
    }

    .paste-helper {
        padding: 15px;
    }

    .paste-helper textarea {
        font-size: 12px;
    }

    .paste-helper label,
    .paste-helper small {
        font-size: 12px;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px;
    }
}

/* Excel Paste Helper Styles */
.paste-helper {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.paste-helper label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.paste-helper textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.paste-helper textarea:focus {
    border-color: #28a745;
    outline: none;
}

.parse-btn {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.parse-btn:hover {
    background: #218838;
}

.paste-helper small {
    display: block;
    color: #6c757d;
    font-style: italic;
}

/* Modern Reports Header */
.reports-header {
    margin-bottom: 32px;
}

.header-title {
    margin-bottom: 24px;
}

.header-title h2 {
    margin: 0 0 8px 0;
    color: #1a202c;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header-subtitle {
    margin: 0;
    color: #718096;
    font-size: 16px;
    font-weight: 400;
}

/* Modern Controls Container */
.modern-controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Control Sections */
.control-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Horizontal layout for control sections */
.control-section.horizontal-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.12);
}

.control-section.horizontal-layout .section-header {
    display: flex;
    align-items: center;
    margin-right: 12px;
    min-width: 140px;
}

.control-section.horizontal-layout .section-icon {
    font-size: 18px;
    margin-right: 6px;
}

.control-section.horizontal-layout .section-title {
    font-weight: 600;
    font-size: 13px;
    color: #2d3748;
}

.control-section.horizontal-layout .input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.control-section.horizontal-layout .input-field {
    margin-right: 8px;
    min-width: 110px;
}

.control-section.horizontal-layout .input-field label {
    display: block;
    font-size: 11px;
    color: #4a5568;
    margin-bottom: 2px;
}

.control-section.horizontal-layout .button-group {
    display: flex;
    gap: 8px;
}

.control-section:first-child {
    padding-right: 12px;
    border-right: 1px solid #f7fafc;
}

/* Single-line comparison layout for Google Play */
.control-section.compare-single-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.12);
    flex-wrap: wrap;
}

.control-section.compare-single-line .compare-label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.control-section.compare-single-line .compare-label .section-icon {
    font-size: 18px;
}

.control-section.compare-single-line .compare-label .section-title {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    white-space: nowrap;
}

.control-section.compare-single-line .compare-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    position: relative;
}

.control-section.compare-single-line .compare-input-wrapper label {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.control-section.compare-single-line .compare-input-wrapper input {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.control-section.compare-single-line .compare-buttons {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

/* Note outside the compare card */
.compare-note {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 8px 0;
}

.compare-note .note-text {
    font-size: 12px;
    color: #718096;
    font-style: italic;
    white-space: nowrap;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    filter: grayscale(0.2);
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.025em;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.input-field label {
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    margin: 0;
}

.modern-date-input {
    padding: 6px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    z-index: 1;
    min-width: 150px;
}

.modern-date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    z-index: 10;
}

.modern-date-input:hover {
    border-color: #cbd5e0;
    cursor: pointer;
}

.modern-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    padding: 4px;
    margin-left: 4px;
}

.modern-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 0.8;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Modern Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1.5px 3px -1px rgba(0, 0, 0, 0.1), 0 1px 1.5px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1.5px 3px -1px rgba(0, 0, 0, 0.1), 0 1px 1.5px -1px rgba(0, 0, 0, 0.06);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* Entry Date Input */
.entry-date-input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.entry-date-input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Bulk Date Styling */
.paste-date-row {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.paste-date-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.paste-date-field label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.paste-date-field small {
    color: #6c757d;
    font-size: 11px;
    font-style: italic;
}

/* Bulk Delete Styles */
.bulk-select-header {
    width: 40px;
    text-align: center;
    padding: 8px !important;
}

.bulk-select-all,
.bulk-select-item {
    cursor: pointer;
    transform: scale(1.2);
}

.bulk-actions {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.bulk-delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.bulk-delete-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.bulk-select-cell {
    width: 40px;
    text-align: center;
    padding: 8px !important;
}

.filter-status {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #0c5460;
    font-size: 14px;
    display: none;
}

.filter-status.active {
    display: block;
}

.filter-status .clear-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
}

.filter-status .clear-link:hover {
    color: #0056b3;
}

/* Modern Status Indicators */
.filter-status {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #e1bee7;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #4a148c;
    font-size: 14px;
    font-weight: 500;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-status.active {
    display: block;
}

.compare-mode {
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border: 1px solid #f8bbd9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #880e4f;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-status .clear-link,
.compare-mode .clear-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-status .clear-link:hover,
.compare-mode .clear-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

.comparison-cell {
    position: relative;
}

.comparison-change {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.comparison-change.positive {
    color: #28a745;
}

.comparison-change.negative {
    color: #dc3545;
}

.comparison-change.neutral {
    color: #6c757d;
}

.comparison-change::before {
    margin-right: 2px;
}

.comparison-change.positive::before {
    content: '↗';
}

.comparison-change.negative::before {
    content: '↘';
}

.comparison-change.neutral::before {
    content: '→';
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modern-controls {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .control-section:first-child {
        padding-right: 0;
        padding-bottom: 24px;
        border-right: none;
        border-bottom: 1px solid #f7fafc;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .button-group {
        justify-content: center;
    }

    .input-field {
        min-width: auto;
    }
    
    /* Responsive single-line comparison */
    .control-section.compare-single-line {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .control-section.compare-single-line .compare-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        min-width: auto;
    }
    
    .control-section.compare-single-line .compare-input-wrapper label {
        margin-bottom: 4px;
    }
    
    .control-section.compare-single-line .compare-buttons {
        width: 100%;
    }
    
    .control-section.compare-single-line .compare-buttons button {
        flex: 1;
    }
    
    .compare-note {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .paste-helper {
        padding: 15px;
    }

    .modern-controls {
        padding: 20px;
        border-radius: 12px;
    }

    .header-title h2 {
        font-size: 24px;
    }

    .header-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 16px;
    }

    .control-section:not(:last-child) {
        padding-bottom: 20px;
    }

    .input-group {
        gap: 12px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary,
    .btn-accent {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .modern-date-input {
        padding: 14px 16px;
    }

    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }

    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    .role-selector {
        justify-content: center;
    }

    .tab-navigation,
    .report-tab-navigation {
        flex-direction: column;
        gap: 8px;
    }

    .tab-btn,
    .report-tab-btn {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .modern-controls {
        padding: 16px;
        margin: 0 -10px;
    }

    .section-header {
        gap: 8px;
    }

    .section-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .role-toggle {
        flex-direction: column;
        gap: 8px;
    }
}

/* Export Section Styles */
.export-section {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.export-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pagination-info {
    font-size: 14px;
    color: #495057;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-per-page label {
    margin: 0;
    font-size: 14px;
    color: #495057;
}

.items-select {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #495057;
}

.page-numbers {
    display: flex;
    align-items: center;
}

.page-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #e9ecef;
    color: #212529;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers-container {
    display: flex;
    gap: 5px;
}

.page-number {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-number:hover {
    background: #e9ecef;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-controls {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .page-numbers {
        justify-content: center;
        width: 100%;
    }
}

.export-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.export-btn .btn-icon {
    font-size: 20px;
}

@media (max-width: 768px) {
    .export-container {
        flex-direction: column;
        align-items: center;
    }

    .export-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Amazon Table Specific Styles */
.amazon-table {
    table-layout: auto;
    min-width: 2800px;
    /* Ensure table is wide enough for all full column names */
    width: 2800px;
    /* Fixed width to ensure horizontal scrolling */
    font-size: 12px;
    border-collapse: collapse;
}

.amazon-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

/* Amazon Column Widths - Full column names with proper spacing */
.amazon-col-parent-asin,
.amazon-col-child-asin {
    width: 120px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.amazon-col-title {
    width: 300px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    max-width: 300px;
}

/* Session columns */
.amazon-col-sessions-total,
.amazon-col-sessions-b2b {
    width: 100px;
}

/* Percentage columns */
.amazon-col-session-pct-total,
.amazon-col-session-pct-b2b {
    width: 180px;
}

.amazon-col-page-views-pct-total,
.amazon-col-page-views-pct-b2b {
    width: 200px;
}

.amazon-col-buy-box-total,
.amazon-col-buy-box-b2b {
    width: 220px;
}

.amazon-col-unit-session-pct,
.amazon-col-unit-session-pct-b2b {
    width: 180px;
}

/* Page views columns */
.amazon-col-page-views-total,
.amazon-col-page-views-b2b {
    width: 150px;
}

/* Units columns */
.amazon-col-units-ordered,
.amazon-col-units-ordered-b2b {
    width: 130px;
}

/* Sales columns */
.amazon-col-sales,
.amazon-col-sales-b2b {
    width: 160px;
}

/* Order items columns */
.amazon-col-total-order-items,
.amazon-col-total-order-items-b2b {
    width: 150px;
}

.amazon-col-date {
    width: 100px;
}

.amazon-col-actions {
    width: 80px;
}

/* Amazon table headers - match standard table styling */
.amazon-table th {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Better cell alignment for numbers */
.amazon-table .amazon-col-sessions-total,
.amazon-table .amazon-col-sessions-b2b,
.amazon-table .amazon-col-session-pct-total,
.amazon-table .amazon-col-session-pct-b2b,
.amazon-table .amazon-col-page-views-total,
.amazon-table .amazon-col-page-views-b2b,
.amazon-table .amazon-col-page-views-pct-total,
.amazon-table .amazon-col-page-views-pct-b2b,
.amazon-table .amazon-col-buy-box-total,
.amazon-table .amazon-col-buy-box-b2b,
.amazon-table .amazon-col-units-ordered,
.amazon-table .amazon-col-units-ordered-b2b,
.amazon-table .amazon-col-unit-session-pct,
.amazon-table .amazon-col-unit-session-pct-b2b,
.amazon-table .amazon-col-sales,
.amazon-table .amazon-col-sales-b2b,
.amazon-table .amazon-col-total-order-items,
.amazon-table .amazon-col-total-order-items-b2b {
    text-align: right;
}

/* Amazon reports section alignment - match header and other sections */
#amazon-reports-tab {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Amazon form alignment - removed specific styling to match other forms */

/* Amazon table container with proper scrolling */
#amazon-reports-tab .table-container {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

/* Responsive behavior for Amazon section */
@media (max-width: 1200px) {

    #amazon-reports-tab {
        padding: 0 10px;
    }

    .amazon-table {
        font-size: 11px;
    }

    .amazon-table th,
    .amazon-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {

    #amazon-reports-tab {
        padding: 0 10px;
    }

    .amazon-table {
        font-size: 10px;
    }

    .amazon-table th,
    .amazon-table td {
        padding: 6px;
    }
}

/* Status badges for Shopify orders */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-unknown {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Tag badges for Shopify orders */
.tag-badge {
    display: inline-block;
    padding: 2px 6px;
    margin: 1px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

/* Shopify settings button - hidden by default in viewer mode */
.viewer-mode #shopifySettings {
    display: none !important;
}


/* Shopify Configuration Modal Styles */
.config-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.config-status {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dc3545;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background-color: #28a745;
}

.status-dot.testing {
    background-color: #ffc107;
}

.status-text {
    font-weight: 500;
    color: #495057;
}

.config-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    position: relative;
    background: white;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.config-help {
    margin-top: 30px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.config-help h4 {
    margin: 0 0 15px 0;
    color: #1976d2;
    font-size: 16px;
}

.config-help ol {
    margin: 0;
    padding-left: 20px;
}

.config-help li {
    margin-bottom: 8px;
    color: #424242;
    line-height: 1.5;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .config-modal {
        max-width: 95vw;
        margin: 10px;
    }
    .config-actions {
        flex-direction: column;
    }

    .config-actions button {
        width: 100%;
    }
}

/* Privacy Notice Styles */
.privacy-notice {
    margin: 20px 0;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
    display: none; /* Hidden by default, shown only on Shopify tab */
}

.privacy-notice-content {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 15px;
    position: relative;
}

.privacy-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-notice-text {
    flex: 1;
}

.privacy-notice-text h4 {
    margin: 0 0 8px 0;
    color: #d68910;
    font-size: 16px;
    font-weight: 600;
}

.privacy-notice-text p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.privacy-notice-dismiss {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #d68910;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.privacy-notice-dismiss:hover {
    background: rgba(214, 137, 16, 0.1);
    color: #b7950b;
}

/* Show privacy notice only when Shopify tab is active */
.report-content.active .privacy-notice {
    display: block;
}

/* Mobile responsive adjustments for privacy notice */
@media (max-width: 768px) {
    .privacy-notice-content {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .privacy-notice-icon {
        font-size: 20px;
    }
    
    .privacy-notice-text h4 {
        font-size: 15px;
    }
    
    .privacy-notice-text p {
        font-size: 13px;
    }
}
/* Trend Chart Modal Styles */
.trend-chart-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
}

.trend-chart-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.trend-chart-modal .modal-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trend-chart-modal .trend-chart-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.trend-chart-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.trend-chart-modal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.trend-chart-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.trend-chart-modal .modal-body {
    padding: 24px;
    background: #f8f9fa;
}

.trend-chart-modal .chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 350px;
    position: relative;
}

.trend-chart-modal .chart-container canvas {
    max-height: 350px;
}

.grade5-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.grade5-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.grade5-card:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .trend-chart-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .trend-chart-modal .modal-header {
        padding: 16px 20px;
    }
    
    .trend-chart-modal .trend-chart-icon {
        width: 40px;
        height: 40px;
    }
    
    .trend-chart-modal .modal-header h3 {
        font-size: 16px;
    }
    
    .trend-chart-modal .modal-body {
        padding: 16px;
    }
    
    .trend-chart-modal .chart-container {
        padding: 12px;
        min-height: 280px;
    }
}

/* Modal Overlay Base Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay .modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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