/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES (Hello Kitty Cute Pink & Cream Theme)
   ========================================================================== */
:root {
    /* Color Palette - Soft & Lovely Pastels */
    --bg-dark: #fff5f6; /* Sweet Cream Pinkish White */
    --panel-bg: #ffffff; /* Cute Card White */
    --panel-bg-trans: rgba(255, 255, 255, 0.92); 
    --panel-border: rgba(255, 105, 180, 0.15); /* Sweet Rose tint */
    
    --primary-color: #ff69b4; /* Kitty Hot Pink */
    --primary-hover: #ff85a2; /* Soft Pastel Pink */
    --primary-glow: rgba(255, 105, 180, 0.25);
    --primary-light: rgba(255, 105, 180, 0.06);
    
    --secondary-color: #ffd166; /* Kitty Bow Yellow (Goldish Accent) */
    --secondary-hover: #ffdf85;
    --secondary-glow: rgba(255, 209, 102, 0.3);
    
    --text-main: #5c4a4a; /* Warm Rose Charcoal for high legibility */
    --text-muted: #7c6a6a; /* Warm Cocoa Grey */
    --text-subtle: #a38f8f; /* Rose Silver */
    
    --success: #83c5be; /* Soft Pastel Mint Green */
    --success-light: rgba(131, 197, 190, 0.15);
    --warning: #f4a261; /* Pastel Peach */
    --danger: #e63946; /* Cute Soft Red */
    
    --font-thai: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-eng: 'Inter', system-ui, sans-serif;
    
    --shadow-neon-red: 0 0 15px rgba(255, 105, 180, 0.2);
    --shadow-neon-blue: 0 0 15px rgba(255, 209, 102, 0.2);
    --shadow-premium: 0 8px 30px rgba(255, 105, 180, 0.06);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-thai);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 105, 180, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(255, 209, 102, 0.05) 0%, transparent 45%);
}

/* Kitty heart-dot pattern decoration */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(var(--panel-border) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    z-index: -2;
    opacity: 0.7;
    pointer-events: none;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.header-container, .content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   APP HEADER & LOGO
   ========================================================================== */
.app-header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-eng);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: none;
    letter-spacing: 0.5px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 24px;
    animation: ribbon-sway 3s ease-in-out infinite alternate;
}

@keyframes ribbon-sway {
    0% { transform: translateY(-1px) rotate(-6deg) scale(1); }
    100% { transform: translateY(1px) rotate(6deg) scale(1.05); }
}

.logo-text span {
    color: var(--text-main);
}

.logo-text .highlight {
    color: var(--primary-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--panel-border);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary-color);
}

.pulse {
    box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 105, 180, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
    }
}

/* ==========================================================================
   APP MAIN CONTENT
   ========================================================================== */
.app-main-content {
    flex-grow: 1;
    padding: 35px 0;
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.main-heading {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.3);
}

.hero-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================================================
   ALERT BOX
   ========================================================================== */
.alert-box {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.alert-icon {
    font-size: 18px;
    margin-top: 3px;
    color: var(--danger);
}

.alert-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.alert-content p {
    font-size: 13.5px;
    opacity: 0.95;
}

/* ==========================================================================
   DASHBOARD CARDS & GRIDS
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

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

.card {
    background: var(--panel-bg-trans);
    backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon-red), var(--shadow-premium);
    transform: translateY(-2px);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
    padding-bottom: 12px;
}

.card-title i {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

/* ==========================================================================
   DRAG AND DROP UPLOAD ZONE
   ========================================================================== */
.drag-drop-area {
    background: rgba(255, 255, 255, 0.55);
    border: 2px dashed rgba(255, 105, 180, 0.25);
    border-radius: 12px;
    padding: 45px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drag-drop-area:hover, .drag-drop-area.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.1);
}

.icon-circle {
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.15);
    transition: var(--transition-smooth);
    color: var(--primary-color);
}

.drag-drop-area:hover .icon-circle {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color);
}

.cloud-icon {
    font-size: 24px;
    transition: var(--transition-smooth);
}

.drag-drop-area h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.drag-drop-area p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-limits {
    display: block;
    font-size: 11px;
    color: var(--text-subtle);
}

/* Selected File Display */
.file-name-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    border: 1px solid rgba(255, 105, 180, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 10px;
    color: var(--text-main);
    font-family: var(--font-eng);
    font-weight: 600;
    font-size: 13.5px;
    max-width: 90%;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.05);
}

.csv-icon {
    font-size: 16px;
    color: var(--primary-color);
}

.remove-file-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.remove-file-btn:hover {
    background: rgba(255, 105, 180, 0.15);
    color: var(--primary-color);
}

/* Submit Actions */
.submit-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-thai);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.btn-large {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:not(:disabled):hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(255, 105, 180, 0.4);
}

.btn-primary:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-success {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
}

.btn-success:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(255, 105, 180, 0.4);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

/* ==========================================================================
   FEATURES / GUIDE ITEMS
   ========================================================================== */
.guide-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.guide-item i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 14px;
}

/* Schema Table */
.schema-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 13px;
}

.schema-table th {
    background: var(--primary-light);
    color: var(--text-main);
    font-weight: 700;
    padding: 8px 12px;
    border: 1px solid rgba(255, 105, 180, 0.1);
    text-align: left;
}

.schema-table td {
    padding: 8px 12px;
    border: 1px solid rgba(255, 105, 180, 0.08);
    color: var(--text-muted);
}

.schema-table tr:nth-child(even) td {
    background: rgba(255, 105, 180, 0.02);
}

.badge-required {
    background: rgba(230, 57, 70, 0.1);
    color: #e63946;
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.badge-optional {
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(255, 105, 180, 0.2);
}

/* ==========================================================================
   PRESIDENT PROFILE BADGE (PROMOTING PRESIDENT SIVAKORN)
   ========================================================================== */
.president-card {
    background: linear-gradient(145deg, #fffafb 0%, #fff0f3 100%);
    border: 1px solid rgba(255, 105, 180, 0.25);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.05), var(--shadow-premium);
    position: relative;
}

.president-card::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.president-badge-title {
    background: rgba(255, 105, 180, 0.12);
    border: 1px solid rgba(255, 105, 180, 0.25);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.president-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.president-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

.president-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.president-info p {
    font-size: 13.5px;
    color: var(--primary-color);
    font-weight: 600;
}

.president-quote {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    border-left: 2px solid var(--primary-color);
    padding-left: 12px;
    margin-top: 10px;
    font-style: italic;
}

/* ==========================================================================
   STATS TILES & RESULT PAGE
   ========================================================================== */
.result-header-section {
    margin-bottom: 28px;
}

.success-icon {
    color: var(--primary-color);
    margin-right: 6px;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--panel-bg-trans);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    border-top: 4px solid var(--primary-color);
}

.stat-card.success-border {
    border-top-color: var(--primary-hover);
}

.stat-card.danger-border {
    border-top-color: var(--danger);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-subtle);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-family: var(--font-eng);
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}

.stat-card.success-border .stat-value {
    color: var(--primary-color);
    text-shadow: none;
}

.stat-card.danger-border .stat-value {
    color: var(--danger);
}

.stat-desc {
    display: block;
    font-size: 12px;
    color: var(--text-subtle);
}

/* Results Layout Columns */
.results-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 28px;
}

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

.download-section-card, .rules-applied-card, .preview-section-card {
    background: var(--panel-bg-trans);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.download-section-card:hover, .rules-applied-card:hover, .preview-section-card:hover {
    border-color: rgba(255, 105, 180, 0.3);
}

.download-section-card h3, .rules-applied-card h3, .preview-section-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-section-card h3 i, .rules-applied-card h3 i, .preview-section-card h3 i {
    color: var(--primary-color);
}

.download-section-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.download-action-wrapper {
    margin-bottom: 16px;
}

.btn-download {
    width: 100%;
}

.file-path-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-subtle);
}

.local-path {
    background: rgba(255, 105, 180, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-eng);
    color: var(--primary-color);
    border: 1px solid rgba(255, 105, 180, 0.2);
}

.cleaned-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cleaned-list li {
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    color: var(--text-muted);
}

.cleaned-list li i {
    margin-top: 3px;
}

.text-success { color: #5bb3a0; }
.text-danger { color: var(--danger); }

/* ==========================================================================
   PREVIEW TABLE CARD (Consoles / Cute Kitty-Console Design)
   ========================================================================== */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.preview-badge {
    background: rgba(255, 105, 180, 0.08);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 105, 180, 0.2);
    text-transform: uppercase;
}

.table-responsive-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: #ffffff;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.preview-table th {
    background: rgba(255, 105, 180, 0.08);
    color: var(--text-main);
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.15);
    white-space: nowrap;
}

.preview-table td {
    padding: 12px 14px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 105, 180, 0.05);
    white-space: nowrap;
}

.preview-table tbody tr:nth-child(even) td {
    background: rgba(255, 105, 180, 0.01);
}

.preview-table tbody tr:hover td {
    background: rgba(255, 105, 180, 0.06);
    color: var(--primary-color);
}

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

/* Issues Log Box */
.issues-log-card {
    background: var(--panel-bg-trans);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
}

.issues-log-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.issues-log-card h3 i {
    color: var(--primary-color);
}

.issues-log-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.issues-log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.issues-log-list li {
    font-size: 13px;
    color: #b91c1c;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.issues-log-list li i {
    margin-top: 3px;
    color: var(--primary-color);
}

.no-issues-found {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    color: #5bb3a0;
    font-weight: 600;
    padding: 12px;
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--panel-border);
    font-size: 12px;
    color: var(--text-subtle);
    background: #ffffff;
    margin-top: auto;
}

.app-footer p {
    margin-bottom: 4px;
}

.app-footer .president-footer-promo {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================================================
   NAVIGATION & DASHBOARD DYNAMIC STYLING
   ========================================================================== */
.app-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-subtle);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    font-family: var(--font-thai);
}

.nav-link i {
    font-size: 13px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 105, 180, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: var(--primary-light);
    border: 1px solid rgba(255, 105, 180, 0.25);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.15);
}

/* Filter Form */
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 16px;
    align-items: flex-end;
}

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

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

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-family: var(--font-thai);
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-secondary-outline {
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid rgba(255, 105, 180, 0.25);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
}

.btn-secondary-outline:hover {
    background: rgba(255, 105, 180, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

.chart-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
    margin-top: 10px;
}

/* Dashboard Summary Card Adjustments */
.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* ==========================================================================
   CAROUSEL SLIDER & VIEW TOGGLE DYNAMIC STYLING
   ========================================================================== */
.view-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.view-toggle-container {
    background: rgba(255, 105, 180, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
}

.toggle-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-thai);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

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

.toggle-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.25);
}

/* Slides Container & Controls */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.slides-container {
    width: 100%;
}

.slide-item {
    display: none;
    animation: slideFade 0.4s ease-in-out;
}

.slide-item.active {
    display: block;
}

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

.slide-card-lg {
    min-height: 480px;
    padding: 30px 40px;
}

.slide-card-lg .chart-wrapper {
    height: 380px !important;
}

/* Navigation Arrows */
.slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding: 0 10px;
}

.slider-arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--panel-border);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.slider-arrow-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.35);
    transform: scale(1.08);
}

.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 105, 180, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.slider-dot:hover {
    background: var(--primary-hover);
}

.slider-dot.active {
    width: 24px;
    border-radius: 8px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
}


