/* Modern Design Tokens & CSS Variables */
:root {
    /* Color Palette (Dark Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #131b2e;
    --bg-card: #1c2640;
    --bg-card-hover: #243254;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: #6366f1;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-indigo: #6366f1;
    --accent-indigo-hover: #4f46e5;
    --accent-emerald: #10b981;
    --accent-orange: #f97316;
    --accent-rose: #f43f5e;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.35);

    --font-family: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border-color: #e2e8f0;
    --border-focus: #4f46e5;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.text-green { color: var(--accent-emerald) !important; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(19, 27, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-orange), #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Tab Switcher */
.tab-switch {
    display: flex;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--accent-indigo);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.badge {
    background: var(--accent-orange);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* Control Buttons */
.controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-indigo);
    transform: translateY(-1px);
}

.sheets-btn {
    border-color: rgba(16, 185, 129, 0.4);
}
.sheets-btn:hover {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
}

/* Google Sheets Sync Banner */
.sheets-banner {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #34d399;
}

.sheets-banner-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-primary);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}

/* Container */
.main-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.25rem;
    flex: 1;
    width: 100%;
}

/* View Sections */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Card */
.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-image {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.2) 0%, rgba(11, 15, 25, 0.95) 100%);
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem 2rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
}

[data-theme="light"] .hero-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo);
}

.hero-content h1 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 750px;
}

/* Progress Card */
.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

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

.progress-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.progress-percentage {
    font-weight: 800;
    color: var(--accent-indigo);
    font-size: 1rem;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.6rem;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-emerald));
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Form Cards */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.form-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.metadata-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.header-icon {
    font-size: 1.75rem;
    color: var(--accent-indigo);
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

.input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.custom-input, .custom-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.custom-input:focus, .custom-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Question Cards */
.question-card {
    display: flex;
    gap: 1.25rem;
}

.q-number {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-indigo);
    color: var(--accent-indigo);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-content {
    flex: 1;
}

.q-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.q-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Rating Chips Options */
.rating-options {
    display: grid;
    gap: 0.75rem;
}

.options-5 {
    grid-template-columns: repeat(5, 1fr);
}

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

.rating-chip {
    cursor: pointer;
    position: relative;
}

.rating-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition);
}

.chip-icon {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.rating-chip:hover .chip-content {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.rating-chip:hover .chip-icon {
    transform: scale(1.15);
}

.rating-chip input[type="radio"]:checked + .chip-content {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-indigo);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    font-weight: 700;
}

.rating-chip input[type="radio"]:checked + .chip-content .chip-icon {
    transform: scale(1.2);
    color: var(--accent-indigo);
}

.chip-excellent input[type="radio"]:checked + .chip-content {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.chip-excellent input[type="radio"]:checked + .chip-content .chip-icon { color: var(--accent-emerald); }

.chip-verygood input[type="radio"]:checked + .chip-content {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}
.chip-verygood input[type="radio"]:checked + .chip-content .chip-icon { color: var(--accent-cyan); }

.chip-good input[type="radio"]:checked + .chip-content {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.15);
}

.chip-fair input[type="radio"]:checked + .chip-content {
    border-color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}
.chip-fair input[type="radio"]:checked + .chip-content .chip-icon { color: var(--accent-orange); }

.chip-poor input[type="radio"]:checked + .chip-content {
    border-color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.15);
    color: #f87171;
}
.chip-poor input[type="radio"]:checked + .chip-content .chip-icon { color: var(--accent-rose); }

/* Quick Suggestion Tags */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.tag-btn {
    background: var(--bg-primary);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.tag-btn:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
}

.textarea-wrapper {
    position: relative;
}

.char-count {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Form Action Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-indigo-hover));
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
}

.btn-outline:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
}

.btn-danger-outline {
    background: transparent;
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
}

.btn-danger-outline:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--accent-rose);
}

/* ================= DASHBOARD STYLES ================= */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
}

.dashboard-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-blue { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-orange { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.chart-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Feedback Items Card */
.feedback-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.feedback-items-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.feedback-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    position: relative;
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.feedback-item-author {
    font-weight: 700;
    color: var(--accent-indigo);
}

.feedback-item-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Table Card */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-input {
    width: 250px;
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 1.25rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th, .data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.badge-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.tag-5 { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-4 { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.tag-3 { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.tag-2 { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.tag-1 { background: rgba(244, 63, 94, 0.2); color: #f87171; }

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-large {
    max-width: 750px;
    text-align: left;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-icon-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.modal-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.modal-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-actions-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal-title-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-header-icon {
    font-size: 2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
}

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

.input-btn-flex {
    display: flex;
    gap: 0.6rem;
}

.setup-input-group {
    margin-bottom: 1.25rem;
}

.help-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.setup-steps {
    padding-left: 1.25rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.setup-steps li {
    margin-bottom: 0.75rem;
}

.code-box-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1rem;
}

.code-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.btn-copy {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    cursor: pointer;
}

.btn-copy:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
}

.code-box {
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    overflow-x: auto;
    white-space: pre;
}

.sync-notice {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Footer */
.app-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Print Styles */
@media print {
    .navbar, .controls, .dashboard-tools, .form-actions, .quick-tags, .search-input, .sheets-banner {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .main-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .form-card, .metric-card, .chart-card, .table-card, .feedback-list-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
}
