:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success: #10b981;
    --accent: #8b5cf6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-dark: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --success: #059669;
    --accent: #7c3aed;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder {
    color: #64748b !important;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.logo-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    overflow: visible;
}

.logo-icon rect {
    fill: rgba(99, 102, 241, 0.16);
    stroke: var(--primary);
    stroke-width: 2;
}

.logo-icon path {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: 0;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.loaded {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.card-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.demo-data-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-data-card .card-subtext {
    margin-bottom: 0;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-btn:hover {
    background: var(--primary-hover);
}

.secondary-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .secondary-btn {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #1e1b4b;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

body[data-theme="light"] .secondary-btn:hover {
    background: #e0e7ff;
}

.secondary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

body[data-theme="light"] .secondary-btn:disabled {
    opacity: 1;
    background: #dbeafe;
    color: #1e3a8a;
}

.local-llm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.refresh-config-btn {
    align-self: stretch;
    white-space: nowrap;
}

.model-load-btn {
    min-width: 220px;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 10px 24px rgba(79, 70, 229, 0.28);
}

.model-load-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.model-load-btn:disabled {
    cursor: default;
    opacity: 1;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.55);
    color: var(--success);
    box-shadow: none;
    transform: none;
}

body[data-theme="light"] .model-load-btn {
    background: #4f46e5;
    border-color: #312e81;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16), 0 10px 24px rgba(79, 70, 229, 0.24);
}

body[data-theme="light"] .model-load-btn:hover {
    background: #4338ca;
}

body[data-theme="light"] .model-load-btn:disabled {
    background: #dcfce7;
    border-color: #059669;
    color: #065f46;
    box-shadow: none;
}

.model-readiness-banner {
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.model-readiness-banner.warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}

body[data-theme="light"] .model-readiness-banner.warning {
    color: #854d0e;
    background: #fef3c7;
    border-color: #d97706;
}

.model-readiness-banner.ready {
    color: var(--success);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.file-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-count {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

.column-selector {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selector-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

select {
    background: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

select:focus {
    border-color: var(--primary);
}

.summary-section {
    background: var(--glass-bg);
    border: 1px solid var(--primary);
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.summary-info h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.summary-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-info strong {
    color: var(--text-main);
}

/* Mapping Excel View */
.table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-top: 1rem;
    max-height: calc(100vh - 120px);
}

.table-container table {
    table-layout: fixed;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    color: var(--text-main);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
}

thead th {
    background-color: var(--card-bg);
    background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05));
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    user-select: none;
    border: 1px solid var(--border-color); /* Explicit border needed — border-collapse breaks on sticky elements */
    box-shadow: 0 1px 0 var(--border-color);
}

.resizer {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 6px;
    cursor: col-resize;
    user-select: none;
    z-index: 20;
}

.resizer:hover,
.resizing {
    border-right: 3px solid var(--primary);
}

.group-header {
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Specific Column Widths */
td.col-regulation {
    font-weight: 500;
}

.col-score,
.col-semantics,
.col-weighted {
    text-align: center;
    font-weight: 700;
}

.col-score {
    color: var(--primary);
}

.col-semantics {
    color: #8b5cf6;
}

.col-weighted {
    color: var(--primary);
}

.col-id {
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
}

.col-select,
.col-mapped,
.col-group-analysis {
    text-align: center;
}



td.col-comments,
td.col-group-analysis {
    padding: 0 !important;
    vertical-align: stretch;
    height: 1px;
    /* Allows percentage height on children in some browsers */
}

.comment-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comment-area {
    flex: 1;
    /* Stretch to fill wrapper */
    display: block;
    width: 100%;
    min-height: 120px;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 12px;
    font-family: inherit;
    font-size: 12px;
    resize: vertical;
    /* Allow manual vertical resize if needed, but flex:1 handles auto-fill */
    box-sizing: border-box;
}

.comment-area:focus {
    background: rgba(99, 102, 241, 0.05);
    outline: none;
}

tbody tr:nth-child(even) {
    background: inherit;
}

body[data-theme="light"] tbody tr:nth-child(even) {
    background: inherit;
}

tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Match Rows Styling */
.match-row {
    background: rgba(255, 255, 255, 0.01);
}

body[data-theme="light"] .match-row {
    background: #ffffff;
}

.match-row.mapped {
    background: rgba(16, 185, 129, 0.1);
}

.match-row.mapped td {
    border-color: rgba(16, 185, 129, 0.3);
}

/* Settings Styles */
.settings-card {
    max-width: 800px;
    margin: 0 auto;
}

.settings-group {
    margin-bottom: 2.5rem;
}

.settings-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

#weight-slider {
    width: 100%;
    margin: 1rem 0;
    accent-color: var(--primary);
}

.weight-display {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

textarea#stopwords-area {
    width: 100%;
    background: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

textarea#stopwords-area:focus {
    border-color: var(--primary);
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.data-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.data-preview h4 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-scroll {
    overflow: auto;
    max-height: 400px;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.data-preview table {
    font-size: 0.75rem;
    white-space: normal;
    table-layout: fixed;
    min-width: 100%;
}

.data-preview th,
.data-preview td {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    text-align: left;
    min-width: 150px;
    max-width: 400px;
    word-wrap: break-word;
}

.data-preview th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

/* Preview Highlighting */
.preview-selected {
    background-color: rgba(99, 102, 241, 0.1) !important;
    position: relative;
}

.preview-id {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: var(--success) !important;
}

.action-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-match-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    min-width: 80px;
    transition: all 0.2s ease;
}

.mapped-btn {
    background: #10b981 !important;
    /* Emerald green */
    border-color: #059669 !important;
    color: white !important;
}

.mapped-btn:hover {
    background: #059669 !important;
}

.select-match-btn.analyzing {
    background: var(--accent) !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.data-preview th.preview-selected,
.data-preview th.preview-id {
    border-bottom: 2px solid currentColor;
}

footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}


/* Model Status & AI Styles */
.mapping-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-ai-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-left: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.spinner-small {
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    border-top: 1.5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.model-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}


/* Switch/Toggle Styling */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.switch-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.switch-label span {
    font-weight: 600;
    color: var(--text-main);
}

.switch-label small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

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

    .demo-data-card {
        align-items: stretch;
        flex-direction: column;
    }

    header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

}

/* Mapping Controls Styling */
.mapping-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.number-input {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
    width: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.weight-slider-group {
    flex: 2;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

body[data-theme="light"] .weight-slider-group {
    background: #ffffff;
    border-color: #94a3b8;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
}

.slider-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weight-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border: 1px solid transparent;
    border-radius: 999px;
    outline: none;
    accent-color: var(--primary);
}

body[data-theme="light"] .weight-slider {
    background: #cbd5e1;
    border-color: #64748b;
}

.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
}

.weight-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
}

body[data-theme="light"] .weight-slider::-webkit-slider-thumb {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #2563eb;
}

body[data-theme="light"] .weight-slider::-moz-range-thumb {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #2563eb;
}

td.col-weighted {
    color: var(--accent) !important;
    text-align: center;
    font-weight: 800;
    background: rgba(139, 92, 246, 0.03) !important;
}

.number-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 300px;
}

.modal-body p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sheet-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sheet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sheet-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
}

.sheet-item input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.sheet-item label {
    cursor: pointer;
    font-weight: 500;
    flex-grow: 1;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.1);
}
