/* Bright Theme extracted from Superdesign db_dashboard_bright_1.html
   Safe overrides using CSS variables and scoped classes to work with Bootstrap */

/* Import IBM Plex Sans Thai for Thai language support */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --font-sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --font-thai: 'IBM Plex Sans Thai', 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    /* Exact colors from Superdesign */
    --background: #f9fafb;
    --foreground: #0f172a;

    --sidebar: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-primary: #f97316;
    --sidebar-border: rgba(255,255,255,0.2);
    --sidebar-accent: rgba(255,255,255,0.12);

    --card: #ffffff;
    --border: #e2e8f0;
    --input: #ffffff;

    --primary: #fb923c;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --secondary-foreground: #334155;
    --accent: #f8fafc;
    --accent-foreground: #1e293b;
    --ring: rgba(251, 146, 60, 0.35);
    --destructive: #ef4444;

    --chart-1: #fb923c;
    --chart-2: #22c55e;

    /* Exact spacing from Superdesign */
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;

    /* Exact shadows from Superdesign */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Superdesign specific colors */
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --pink-500: #ec4899;

    /* Text colors from Superdesign */
    --gray-900: #111827;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
}

/* Base overrides */
body.theme-bright {
    font-family: var(--font-sans) !important;
    background: var(--background) !important;
    color: var(--foreground) !important;
}

/* Sidebar styling (Bootstrap sidebar area) - Exact Superdesign spacing */
.theme-bright .sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: var(--shadow-lg) !important;
    border-right: 1px solid var(--sidebar-border) !important;
    padding: 1.5rem !important; /* 24px like Superdesign */
    width: 16rem !important; /* 256px like Superdesign */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
}

.theme-bright .sidebar h4 {
    font-family: var(--font-thai) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important; /* 32px like Superdesign */
    color: white !important;
}

.theme-bright .nav-link {
    font-family: var(--font-thai) !important;
    padding: 0.75rem 1rem !important; /* 12px 16px like Superdesign */
    margin-bottom: 0.5rem !important; /* 8px like Superdesign */
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.theme-bright .nav-link.text-white:hover,
.theme-bright .nav-link.text-white:focus {
    background: var(--sidebar-accent) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: var(--shadow-md) !important;
}

.theme-bright .nav-link.text-white.active {
    background: var(--sidebar-primary) !important;
    box-shadow: var(--shadow) !important;
}

.theme-bright .nav-link i {
    width: 1.25rem !important; /* 20px like Superdesign */
    margin-right: 0.75rem !important; /* 12px like Superdesign */
}

/* Main Content Area - Ultra compact spacing */
.theme-bright .main-content {
    margin-left: 16rem !important; /* 256px sidebar width */
    padding: 0.5rem !important; /* 8px ultra compact */
    min-height: 100vh !important;
    background: var(--background) !important;
    width: calc(100% - 16rem) !important;
}

/* Container fixes for full layout */
.theme-bright .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

.theme-bright .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Page Headers - Ultra compact spacing */
.theme-bright .d-flex.justify-content-between {
    margin-bottom: 0.5rem !important; /* 8px ultra compact */
}

.theme-bright .border-bottom {
    border-color: var(--border) !important;
    padding-bottom: 0.5rem !important; /* 8px ultra compact */
    margin-bottom: 0.5rem !important; /* 8px ultra compact */
}

/* Cards - Ultra compact spacing */
.theme-bright .card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.25s ease !important;
    margin-bottom: 0.5rem !important; /* 8px ultra compact */
}

.theme-bright .card:hover {
    transform: translateY(-2px) scale(1.01) !important; /* Gentler transform */
    box-shadow: var(--shadow-md) !important;
}

.theme-bright .card-header {
    padding: 0.5rem !important; /* 8px ultra compact */
    background: var(--card) !important;
    border-bottom: 1px solid var(--border) !important;
}

.theme-bright .card-body {
    padding: 0.5rem !important; /* 8px ultra compact */
}

.theme-bright .card-footer {
    padding: 0.5rem !important; /* 8px ultra compact */
    background: var(--card) !important;
    border-top: 1px solid var(--border) !important;
}

/* Headers and section titles - Using IBM Plex Sans Thai for emphasis */
.theme-bright h1 {
    font-family: var(--font-thai) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: var(--gray-900) !important;
    line-height: 1.2 !important;
}

.theme-bright h2 {
    font-family: var(--font-thai) !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: var(--gray-900) !important;
    line-height: 1.3 !important;
}

.theme-bright h3 {
    font-family: var(--font-thai) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--gray-900) !important;
    line-height: 1.4 !important;
}

.theme-bright h4 {
    font-family: var(--font-thai) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--gray-900) !important;
    line-height: 1.4 !important;
}

.theme-bright h5 {
    font-family: var(--font-thai) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--gray-900) !important;
    line-height: 1.4 !important;
}

.theme-bright h6 {
    font-family: var(--font-thai) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--gray-900) !important;
    line-height: 1.5 !important;
}

/* Body text - Exact Superdesign sizes */
.theme-bright p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--gray-600) !important;
}

.theme-bright .text-sm, .theme-bright small {
    font-size: 0.85rem !important;
    color: var(--gray-500) !important;
}

.theme-bright .text-xs {
    font-size: 0.75rem !important;
    color: var(--gray-500) !important;
}

.theme-bright .text-lg {
    font-size: 1.125rem !important;
    color: var(--gray-600) !important;
}

.theme-bright .text-xl {
    font-size: 1.25rem !important;
    color: var(--gray-900) !important;
}

.theme-bright .text-2xl {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--gray-900) !important;
}

/* Muted text */
.theme-bright .text-muted {
    color: var(--gray-500) !important;
}

/* Lead text */
.theme-bright .lead {
    font-family: var(--font-thai) !important;
    font-size: 1.125rem !important;
    font-weight: 300 !important;
    color: var(--gray-600) !important;
}

/* Inputs */
.theme-bright input[type="text"],
.theme-bright input[type="search"],
.theme-bright .form-control {
    background: var(--input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.theme-bright .form-control:focus {
    outline: none !important;
    border-color: var(--ring) !important;
    box-shadow: 0 0 0 2px var(--ring), var(--shadow) !important;
}

/* Button System - Unified Theme with IBM Plex Sans Thai */
.theme-bright .btn {
    font-family: var(--font-thai) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-width: 1px !important;
}

.theme-bright .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Primary Buttons - Exact Superdesign colors */
.theme-bright .btn-primary {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500)) !important;
    border-color: var(--orange-400) !important;
    color: var(--primary-foreground) !important;
}

.theme-bright .btn-primary:hover,
.theme-bright .btn-primary:focus {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    border-color: var(--orange-500) !important;
    color: var(--primary-foreground) !important;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4) !important;
}

/* Outline Primary */
.theme-bright .btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
}

.theme-bright .btn-outline-primary:hover,
.theme-bright .btn-outline-primary:focus {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3) !important;
}

/* Secondary Buttons */
.theme-bright .btn-secondary {
    background: var(--secondary) !important;
    border-color: var(--border) !important;
    color: var(--secondary-foreground) !important;
}

.theme-bright .btn-secondary:hover,
.theme-bright .btn-secondary:focus {
    background: var(--accent) !important;
    border-color: var(--border) !important;
    color: var(--accent-foreground) !important;
}

.theme-bright .btn-outline-secondary {
    color: #6b7280 !important;
    border-color: var(--border) !important;
    background: transparent !important;
}

.theme-bright .btn-outline-secondary:hover,
.theme-bright .btn-outline-secondary:focus {
    background: var(--secondary) !important;
    border-color: var(--border) !important;
    color: var(--secondary-foreground) !important;
}

/* Success Buttons */
.theme-bright .btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border-color: #22c55e !important;
    color: white !important;
}

.theme-bright .btn-success:hover,
.theme-bright .btn-success:focus {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border-color: #16a34a !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

.theme-bright .btn-outline-success {
    color: #22c55e !important;
    border-color: #22c55e !important;
    background: transparent !important;
}

.theme-bright .btn-outline-success:hover,
.theme-bright .btn-outline-success:focus {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
}

/* Warning Buttons */
.theme-bright .btn-warning {
    background: linear-gradient(135deg, var(--primary), #fbbf24) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

.theme-bright .btn-warning:hover,
.theme-bright .btn-warning:focus {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    border-color: #fbbf24 !important;
    color: var(--primary-foreground) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
}

.theme-bright .btn-outline-warning {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
}

.theme-bright .btn-outline-warning:hover,
.theme-bright .btn-outline-warning:focus {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

/* Danger Buttons */
.theme-bright .btn-danger {
    background: linear-gradient(135deg, var(--destructive), #dc2626) !important;
    border-color: var(--destructive) !important;
    color: white !important;
}

.theme-bright .btn-danger:hover,
.theme-bright .btn-danger:focus {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    border-color: #dc2626 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.theme-bright .btn-outline-danger {
    color: var(--destructive) !important;
    border-color: var(--destructive) !important;
    background: transparent !important;
}

.theme-bright .btn-outline-danger:hover,
.theme-bright .btn-outline-danger:focus {
    background: var(--destructive) !important;
    border-color: var(--destructive) !important;
    color: white !important;
}

/* Info Buttons */
.theme-bright .btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border-color: #06b6d4 !important;
    color: white !important;
}

.theme-bright .btn-info:hover,
.theme-bright .btn-info:focus {
    background: linear-gradient(135deg, #0891b2, #0e7490) !important;
    border-color: #0891b2 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4) !important;
}

.theme-bright .btn-outline-info {
    color: #06b6d4 !important;
    border-color: #06b6d4 !important;
    background: transparent !important;
}

.theme-bright .btn-outline-info:hover,
.theme-bright .btn-outline-info:focus {
    background: #06b6d4 !important;
    border-color: #06b6d4 !important;
    color: white !important;
}

/* Light/Dark variants */
.theme-bright .btn-light {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--foreground) !important;
}

.theme-bright .btn-light:hover,
.theme-bright .btn-light:focus {
    background: var(--accent) !important;
    border-color: var(--border) !important;
    color: var(--accent-foreground) !important;
}

.theme-bright .btn-dark {
    background: #374151 !important;
    border-color: #374151 !important;
    color: white !important;
}

.theme-bright .btn-dark:hover,
.theme-bright .btn-dark:focus {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
    color: white !important;
}

/* Button sizes with consistent styling */
.theme-bright .btn-sm {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: var(--radius) !important;
}

.theme-bright .btn-lg {
    font-size: 1.125rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-lg) !important;
}

/* Utility from Superdesign */
.theme-bright .bright-glow {
    box-shadow: 0 0 20px var(--primary), var(--shadow-lg) !important;
}

/* Status indicators */
.theme-bright .status-indicator.status-healthy { background-color: #22c55e; }
.theme-bright .status-indicator.status-warning { background-color: #f59e0b; }
.theme-bright .status-indicator.status-error { background-color: #ef4444; }

/* Tables */
.theme-bright table.table {
    background: var(--card);
}
.theme-bright table.table thead {
    font-family: var(--font-thai) !important;
    font-weight: 600 !important;
    background: #f8fafc;
}
.theme-bright table.table th,
.theme-bright table.table td {
    border-color: var(--border) !important;
}
.theme-bright table.table th {
    font-family: var(--font-thai) !important;
    font-weight: 600 !important;
}

/* Header bar mimic */
.theme-bright .header-bg {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* Progress and badges */
.theme-bright .badge.bg-danger {
    background-color: var(--destructive) !important;
}

/* Chat Interface Styles - Compact */
.theme-bright .chat-main-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    min-height: 60vh; /* Shorter for compact layout */
}

.theme-bright .chat-header {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-bottom: 1px solid var(--border) !important;
}

.theme-bright .chat-status {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.theme-bright .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.theme-bright .chat-messages {
    background: #fafbfc !important;
    padding: 0.5rem; /* 8px ultra compact */
    overflow-y: auto;
    min-height: 250px; /* Even shorter */
    max-height: 40vh; /* Even shorter */
}

.theme-bright .message {
    margin-bottom: 0.5rem; /* 8px ultra compact */
    display: flex;
    align-items: flex-start;
    gap: 0.25rem; /* 4px ultra compact */
    animation: slideIn 0.3s ease-out;
}

.theme-bright .message.user {
    flex-direction: row-reverse;
}

.theme-bright .message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.theme-bright .message.user .message-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.theme-bright .message.assistant .message-avatar {
    background: linear-gradient(135deg, var(--green-400), var(--green-600));
}

.theme-bright .message-content {
    background: var(--card);
    padding: 0.5rem; /* 8px ultra compact */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 75%;
    word-wrap: break-word;
    position: relative;
    border: 1px solid var(--border);
}

.theme-bright .message.user .message-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 1px solid var(--sidebar-border);
}

.theme-bright .message-time {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.theme-bright .message.user .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.theme-bright .typing-indicator {
    display: none;
}

.theme-bright .typing-content {
    background: var(--card);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.theme-bright .typing-dots {
    display: flex;
    gap: 4px;
}

.theme-bright .typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.theme-bright .typing-dot:nth-child(2) { animation-delay: 0.2s; }
.theme-bright .typing-dot:nth-child(3) { animation-delay: 0.4s; }

.theme-bright .chat-input-area {
    background: var(--card) !important;
    border-top: 1px solid var(--border) !important;
    padding: 1.5rem !important;
}

.theme-bright .quick-actions .btn {
    border-radius: var(--radius-md) !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
}

.theme-bright .quick-actions .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow) !important;
}

.theme-bright .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.theme-bright .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.theme-bright .quick-start-buttons .btn {
    margin: 0.25rem;
    border-radius: var(--radius-md) !important;
}

/* Sidebar Chat Components */
.theme-bright .example-questions .example-item {
    background: #f8fafc;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.theme-bright .example-questions .example-item:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.theme-bright .history-item {
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.theme-bright .history-item.user {
    background: #eff6ff;
    border-left: 3px solid var(--primary);
    cursor: pointer;
}

.theme-bright .history-item.user:hover {
    background: #dbeafe;
    transform: translateX(2px);
}

.theme-bright .history-item.assistant {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
}

.theme-bright .history-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.theme-bright .history-item.user .history-role {
    color: var(--primary);
}

.theme-bright .history-item.assistant .history-role {
    color: #16a34a;
}

.theme-bright .history-message {
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.4;
}

/* Data Components Enhancements */
.theme-bright .data-result {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.theme-bright .data-result-header {
    font-family: var(--font-thai) !important;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.theme-bright .table-responsive {
    border-radius: var(--radius);
    overflow: hidden;
}

.theme-bright .table {
    margin-bottom: 0 !important;
}

.theme-bright .table thead {
    background: var(--secondary) !important;
}

.theme-bright .table-dark {
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
}

.theme-bright .list-group-item {
    font-family: var(--font-thai) !important;
    border-color: var(--border) !important;
    background: var(--card) !important;
}

.theme-bright .list-group-item:hover {
    background: var(--accent) !important;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

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

/* Animations (reduced for accessibility) */
@media (prefers-reduced-motion: no-preference) {
    .theme-bright .card { animation: cardLoad 0.25s ease-out both; }
}

/* Dashboard and Performance Page Enhancements */
.theme-bright .dashboard-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.25s ease !important;
}

.theme-bright .dashboard-card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: var(--shadow-lg) !important;
}

.theme-bright .chart-container {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
}

.theme-bright .progress-bar {
    background: linear-gradient(90deg, var(--chart-1), var(--chart-2)) !important;
    border-radius: var(--radius) !important;
    height: 8px;
}

.theme-bright .stat-number {
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
}

.theme-bright .notification-badge {
    background: var(--destructive) !important;
    animation: notificationPulse 1s infinite;
}

.theme-bright .time-filter {
    background: var(--secondary) !important;
    color: var(--secondary-foreground) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
}

.theme-bright .time-filter:hover {
    background: var(--accent) !important;
    color: var(--accent-foreground) !important;
    transform: translateY(-1px) !important;
}

.theme-bright .time-filter.active {
    background: var(--primary) !important;
    color: var(--primary-foreground) !important;
    box-shadow: var(--shadow) !important;
}

/* Admin Dashboard Specific */
.theme-bright .health-status {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
}

.theme-bright .security-metrics {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
}

.theme-bright .performance-metrics {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
}

/* Data Tables Enhancement */
.theme-bright .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(248, 250, 252, 0.5) !important;
}

.theme-bright .table-hover > tbody > tr:hover {
    background-color: var(--accent) !important;
}

/* Alert Enhancements - Using IBM Plex Sans Thai for alert text */
.theme-bright .alert {
    font-family: var(--font-thai) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
}

.theme-bright .alert-info {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

.theme-bright .alert-success {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.theme-bright .alert-warning {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.theme-bright .alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

/* Badge Enhancements - Using IBM Plex Sans Thai */
.theme-bright .badge {
    font-family: var(--font-thai) !important;
    font-weight: 600 !important;
    border-radius: var(--radius) !important;
}

.theme-bright .badge.bg-primary {
    background-color: var(--primary) !important;
}

.theme-bright .badge.bg-success {
    background-color: #22c55e !important;
}

.theme-bright .badge.bg-warning {
    background-color: var(--primary) !important;
}

.theme-bright .badge.bg-info {
    background-color: #06b6d4 !important;
}

/* Form Enhancements */
.theme-bright .form-select {
    background: var(--input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--foreground) !important;
}

.theme-bright .form-select:focus {
    border-color: var(--ring) !important;
    box-shadow: 0 0 0 2px var(--ring), var(--shadow) !important;
}

.theme-bright .form-check-input {
    border: 1px solid var(--border) !important;
}

.theme-bright .form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Special Button Types */
.theme-bright .nav-button,
.theme-bright .sidebar-item {
    font-family: var(--font-thai) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.theme-bright .nav-button:hover,
.theme-bright .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow) !important;
}

.theme-bright .sidebar-item.active {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: var(--shadow) !important;
}

/* Action Buttons in Chat/Forms */
.theme-bright .action-button {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--foreground) !important;
    transition: all 0.2s ease !important;
}

.theme-bright .action-button:hover {
    border-color: var(--primary) !important;
    background: var(--accent) !important;
    color: var(--accent-foreground) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow) !important;
}

.theme-bright .action-button.danger {
    border-color: var(--destructive) !important;
    color: var(--destructive) !important;
}

.theme-bright .action-button.danger:hover {
    background: #fef2f2 !important;
    border-color: var(--destructive) !important;
    color: var(--destructive) !important;
}

/* Quick Action Buttons */
.theme-bright .quick-action-btn,
.theme-bright .data-action-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: var(--radius) !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
}

.theme-bright .quick-action-btn:hover,
.theme-bright .data-action-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Time Filter Buttons */
.theme-bright .time-filter {
    background: var(--secondary) !important;
    color: var(--secondary-foreground) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
}

.theme-bright .time-filter:hover {
    background: var(--accent) !important;
    color: var(--accent-foreground) !important;
    transform: translateY(-1px) !important;
}

.theme-bright .time-filter.active {
    background: var(--primary) !important;
    color: var(--primary-foreground) !important;
    box-shadow: var(--shadow) !important;
}

/* Dropdown Buttons */
.theme-bright .dropdown-toggle {
    border-radius: var(--radius-md) !important;
}

.theme-bright .dropdown-toggle::after {
    margin-left: 0.5rem !important;
}

.theme-bright .dropdown-menu {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--card) !important;
}

.theme-bright .dropdown-item {
    font-family: var(--font-thai) !important;
    color: var(--foreground) !important;
    border-radius: var(--radius) !important;
    margin: 0.125rem !important;
    transition: all 0.2s ease !important;
}

.theme-bright .dropdown-item:hover,
.theme-bright .dropdown-item:focus {
    background: var(--accent) !important;
    color: var(--accent-foreground) !important;
}

.theme-bright .dropdown-item.active {
    background: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

/* Button Group Enhancements */
.theme-bright .btn-group .btn {
    border-color: var(--border) !important;
}

.theme-bright .btn-group .btn:not(:first-child) {
    border-left-color: rgba(255, 255, 255, 0.2) !important;
}

.theme-bright .btn-toolbar .btn {
    margin: 0 0.25rem !important;
}

/* Close buttons */
.theme-bright .btn-close {
    filter: invert(0.5) !important;
    opacity: 0.7 !important;
}

.theme-bright .btn-close:hover {
    filter: invert(0.8) !important;
    opacity: 1 !important;
}

/* Floating Action Button Style */
.theme-bright .fab {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary), #f97316) !important;
    color: white !important;
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
}

.theme-bright .fab:hover {
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4) !important;
    color: white !important;
}

/* Animation Enhancements */
@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes progressGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

/* Login Page - Exact Superdesign styling */
.theme-bright .login-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
}

.theme-bright .login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 2rem !important; /* 32px like Superdesign */
    text-align: center !important;
}

.theme-bright .login-header h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    color: white !important;
}

.theme-bright .login-header p {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;
    opacity: 0.8 !important;
    color: white !important;
}

.theme-bright .login-card .card-body {
    padding: 2rem !important; /* 32px like Superdesign */
}

.theme-bright .btn-login {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500)) !important;
    border: none !important;
    padding: 0.75rem !important; /* 12px like Superdesign */
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.theme-bright .btn-login:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4) !important;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: white !important;
}

.theme-bright .input-group {
    margin-bottom: 1rem !important; /* 16px like Superdesign */
}

.theme-bright .input-group-text {
    background: var(--secondary) !important;
    border-color: var(--border) !important;
    color: var(--gray-600) !important;
    border-radius: var(--radius) 0 0 var(--radius) !important;
}

.theme-bright .form-label {
    font-family: var(--font-thai) !important;
    font-weight: 500 !important;
    color: var(--gray-900) !important;
    margin-bottom: 0.5rem !important; /* 8px like Superdesign */
    font-size: 0.9rem !important;
}

/* Grid spacing - Ultra compact */
.theme-bright .row {
    margin-bottom: 0.25rem !important; /* 4px ultra compact */
}

.theme-bright .col-md-3,
.theme-bright .col-md-6,
.theme-bright .col-lg-4,
.theme-bright .col-lg-8 {
    margin-bottom: 0.25rem !important; /* 4px ultra compact */
}

/* Stats Cards - Ultra compact spacing */
.theme-bright .dashboard-card {
    padding: 0.5rem !important; /* 8px ultra compact */
    margin-bottom: 0.25rem !important; /* 4px ultra compact */
}

.theme-bright .dashboard-card h3 {
    font-family: var(--font-thai) !important;
    font-size: 0.875rem !important; /* 14px like Superdesign */
    font-weight: 500 !important;
    color: var(--gray-600) !important;
    margin-bottom: 0.25rem !important; /* 4px ultra compact */
}

.theme-bright .stat-number {
    font-family: var(--font-thai) !important;
    font-size: 1.5rem !important; /* 24px like Superdesign */
    font-weight: 700 !important;
    color: var(--gray-900) !important;
    margin-bottom: 0.125rem !important; /* 2px ultra compact */
}

.theme-bright .progress-bar {
    height: 0.375rem !important; /* 6px like Superdesign */
    margin-top: 0.5rem !important; /* 8px like Superdesign */
}

/* Button Toolbar - Exact Superdesign spacing */
.theme-bright .btn-toolbar {
    gap: 0.5rem !important; /* 8px like Superdesign */
    margin-bottom: 1rem !important; /* 16px like Superdesign */
}

.theme-bright .btn-toolbar .btn {
    padding: 0.375rem 0.75rem !important; /* 6px 12px like Superdesign */
    font-size: 0.875rem !important; /* 14px like Superdesign */
}

/* API Documentation spacing */
.theme-bright .api-section {
    margin-bottom: 2rem !important; /* 32px like Superdesign */
}

.theme-bright .api-endpoint {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important; /* 24px like Superdesign */
    margin-bottom: 1rem !important; /* 16px like Superdesign */
}

.theme-bright .api-method {
    padding: 0.25rem 0.5rem !important; /* 4px 8px like Superdesign */
    border-radius: var(--radius) !important;
    font-size: 0.75rem !important; /* 12px like Superdesign */
    font-weight: 600 !important;
    font-family: var(--font-mono) !important;
}

.theme-bright code {
    background: var(--secondary) !important;
    color: var(--gray-900) !important;
    padding: 0.125rem 0.25rem !important; /* 2px 4px like Superdesign */
    border-radius: var(--radius) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.875rem !important; /* 14px like Superdesign */
}

.theme-bright pre {
    background: var(--secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important; /* 16px like Superdesign */
    font-family: var(--font-mono) !important;
    font-size: 0.875rem !important; /* 14px like Superdesign */
    line-height: 1.5 !important;
}

/* Mobile Header with Hamburger */
.theme-bright .mobile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    box-shadow: var(--shadow-md) !important;
    transition: transform 0.3s ease !important;
    display: none !important;
}

@media (max-width: 767px) {
    .theme-bright .mobile-header {
        display: block !important;
    }
    
    /* Force sidebar to be visible when shown on mobile */
    .theme-bright .sidebar.show {
        left: 0 !important;
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.theme-bright .mobile-header h5 {
    font-family: var(--font-thai) !important;
    color: white !important;
    font-weight: 600 !important;
}

.theme-bright #sidebarToggle {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.25rem !important;
    padding: 0.5rem !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
}

.theme-bright #sidebarToggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Sidebar Overlay for Mobile */
.theme-bright .sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    display: none !important;
}

.theme-bright .sidebar-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

@media (max-width: 767px) {
    .theme-bright .sidebar-overlay {
        display: none !important;
    }
    
    .theme-bright .sidebar-overlay.show {
        display: block !important;
    }
}

/* Body adjustments when sidebar is open */
.theme-bright body.sidebar-open {
    overflow: hidden !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Chat responsive */
    .theme-bright .chat-messages {
        padding: 0.5rem !important;
        min-height: 250px !important;
        max-height: 40vh !important;
    }
    
    .theme-bright .message-content {
        max-width: 90% !important;
        padding: 0.5rem !important;
    }
    
    .theme-bright .chat-input-area {
        padding: 0.5rem !important;
    }
    
    .theme-bright .quick-actions .btn {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Dashboard responsive */
    .theme-bright .dashboard-card {
        margin-bottom: 0.5rem !important;
        padding: 0.5rem !important;
    }
    
    .theme-bright .stat-number {
        font-size: 1.25rem !important;
    }
    
    /* Button toolbar responsive */
    .theme-bright .btn-toolbar {
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    .theme-bright .btn-toolbar .btn {
        width: 100% !important;
        margin: 0 !important;
        font-size: 0.8rem !important;
    }
    
    /* Table responsive */
    .theme-bright .table-responsive {
        font-size: 0.8rem !important;
    }
    
    .theme-bright .table th,
    .theme-bright .table td {
        padding: 0.25rem !important;
    }
    
    /* Grid responsive */
    .theme-bright .row > [class*="col-"] {
        margin-bottom: 0.5rem !important;
    }
    
    /* Hide desktop-only elements */
    .theme-bright .d-none.d-md-block {
        display: none !important;
    }
    
    /* Show mobile-only elements */
    .theme-bright .d-md-none {
        display: block !important;
    }
    
    /* Mobile sidebar adjustments */
    .theme-bright .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -16rem !important; /* Hidden by default */
        width: 16rem !important;
        height: 100vh !important;
        z-index: 1045 !important;
        transform: translateX(0) !important;
        transition: all 0.3s ease !important;
        padding: 1rem !important;
    }
    
    .theme-bright .sidebar.show {
        left: 0 !important; /* Show sidebar */
        transform: translateX(0) !important;
    }
    
    .theme-bright .main-content {
        margin-left: 0 !important;
        padding: 1rem !important;
        width: 100% !important;
        padding-top: 5rem !important; /* Space for mobile header */
    }
    
    .theme-bright .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Mobile card adjustments */
    .theme-bright .card-body {
        padding: 1rem !important; /* 16px on mobile */
    }
    
    .theme-bright .card-header {
        padding: 0.75rem 1rem !important; /* 12px 16px on mobile */
    }
    
    /* Mobile login adjustments */
    .theme-bright .login-card .card-body {
        padding: 1.5rem !important; /* 24px on mobile */
    }
    
    .theme-bright .login-header {
        padding: 1.5rem !important; /* 24px on mobile */
    }
    
    /* Mobile dashboard cards */
    .theme-bright .dashboard-card {
        padding: 1rem !important; /* 16px on mobile */
        margin-bottom: 1rem !important; /* 16px on mobile */
    }
    
    .theme-bright .stat-number {
        font-size: 1.25rem !important; /* 20px on mobile */
    }
}

/* Tablet Layout (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .theme-bright .sidebar {
        width: 14rem !important; /* Narrower sidebar on tablet */
    }
    
    .theme-bright .main-content {
        margin-left: 14rem !important;
        width: calc(100% - 14rem) !important;
        padding: 0.75rem !important;
    }
    
    .theme-bright .card-body {
        padding: 0.75rem !important;
    }
    
    .theme-bright .btn-toolbar {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    .theme-bright .btn-toolbar .btn {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .theme-bright .main-content {
        padding: 1rem 2rem !important; /* More padding on large screens */
    }
    
    .theme-bright .container-fluid {
        max-width: 1400px !important;
        margin: 0 auto !important;
    }
    
    .theme-bright .card-body {
        padding: 1rem !important;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .theme-bright .mobile-header .d-flex {
        padding: 0.5rem !important;
    }
    
    .theme-bright .mobile-header h5 {
        font-size: 1rem !important;
    }
    
    .theme-bright .main-content {
        padding: 0.5rem !important;
        padding-top: 4rem !important;
    }
    
    .theme-bright .card {
        margin-bottom: 0.25rem !important;
    }
    
    .theme-bright .card-body {
        padding: 0.5rem !important;
    }
    
    .theme-bright .btn {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .theme-bright .btn-toolbar {
        flex-direction: column !important;
    }
    
    .theme-bright .btn-toolbar .btn {
        width: 100% !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Additional Typography - IBM Plex Sans Thai for emphasis */
.theme-bright .card-title,
.theme-bright .card-header h5,
.theme-bright .card-header h6,
.theme-bright .modal-title,
.theme-bright .navbar-brand,
.theme-bright .breadcrumb,
.theme-bright .page-title,
.theme-bright .section-title,
.theme-bright .emphasis,
.theme-bright .highlight,
.theme-bright strong,
.theme-bright .fw-bold,
.theme-bright .font-weight-bold {
    font-family: var(--font-thai) !important;
}

/* Form elements emphasis */
.theme-bright .form-check-label,
.theme-bright .form-text.emphasis,
.theme-bright .input-group-text {
    font-family: var(--font-thai) !important;
}

/* Status and notification text */
.theme-bright .status-text,
.theme-bright .notification-text,
.theme-bright .error-text,
.theme-bright .success-text,
.theme-bright .warning-text {
    font-family: var(--font-thai) !important;
    font-weight: 500 !important;
}

/* Container spacing - Exact Superdesign */
.theme-bright .container,
.theme-bright .container-fluid {
    padding-left: 1.5rem !important; /* 24px like Superdesign */
    padding-right: 1.5rem !important; /* 24px like Superdesign */
}

/* Section spacing - Ultra compact (max 0.5rem) */
.theme-bright .mb-4 {
    margin-bottom: 0.5rem !important; /* 8px max */
}

.theme-bright .mb-3 {
    margin-bottom: 0.5rem !important; /* 8px max */
}

.theme-bright .mb-2 {
    margin-bottom: 0.25rem !important; /* 4px ultra compact */
}

.theme-bright .mt-4 {
    margin-top: 0.5rem !important; /* 8px max */
}

.theme-bright .mt-3 {
    margin-top: 0.5rem !important; /* 8px max */
}

.theme-bright .pt-3 {
    padding-top: 0.5rem !important; /* 8px max */
}

.theme-bright .pb-2 {
    padding-bottom: 0.25rem !important; /* 4px ultra compact */
}

/* Gap utilities - Exact Superdesign */
.theme-bright .gap-1 {
    gap: 0.25rem !important; /* 4px like Superdesign */
}

.theme-bright .gap-2 {
    gap: 0.5rem !important; /* 8px like Superdesign */
}

.theme-bright .gap-3 {
    gap: 0.75rem !important; /* 12px like Superdesign */
}

.theme-bright .gap-4 {
    gap: 1rem !important; /* 16px like Superdesign */
}

.theme-bright .gap-6 {
    gap: 1.5rem !important; /* 24px like Superdesign */
}

/* Icon spacing - Exact Superdesign */
.theme-bright .me-1 {
    margin-right: 0.25rem !important; /* 4px like Superdesign */
}

.theme-bright .me-2 {
    margin-right: 0.5rem !important; /* 8px like Superdesign */
}

.theme-bright .me-3 {
    margin-right: 0.75rem !important; /* 12px like Superdesign */
}

.theme-bright .ms-1 {
    margin-left: 0.25rem !important; /* 4px like Superdesign */
}

.theme-bright .ms-2 {
    margin-left: 0.5rem !important; /* 8px like Superdesign */
}

.theme-bright .ms-3 {
    margin-left: 0.75rem !important; /* 12px like Superdesign */
}

/* Responsive Utilities */
.theme-bright .d-mobile-none {
    display: block !important;
}

.theme-bright .d-mobile-block {
    display: none !important;
}

@media (max-width: 768px) {
    .theme-bright .d-mobile-none {
        display: none !important;
    }
    
    .theme-bright .d-mobile-block {
        display: block !important;
    }
    
    .theme-bright .d-mobile-flex {
        display: flex !important;
    }
}

/* Responsive Text Sizes - Maintain IBM Plex Sans Thai */
@media (max-width: 768px) {
    .theme-bright h1 {
        font-family: var(--font-thai) !important;
        font-size: 2rem !important; /* Smaller on mobile */
    }
    
    .theme-bright h2 {
        font-family: var(--font-thai) !important;
        font-size: 1.5rem !important;
    }
    
    .theme-bright h3 {
        font-family: var(--font-thai) !important;
        font-size: 1.25rem !important;
    }
    
    .theme-bright h4 {
        font-family: var(--font-thai) !important;
        font-size: 1.125rem !important;
    }
    
    .theme-bright h5 {
        font-family: var(--font-thai) !important;
        font-size: 1rem !important;
    }
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .theme-bright .col-md-6 {
        width: 100% !important;
    }
    
    .theme-bright .col-lg-4 {
        width: 100% !important;
    }
    
    .theme-bright .col-lg-8 {
        width: 100% !important;
    }
}

/* Responsive Chat Layout */
@media (max-width: 768px) {
    .theme-bright .chat-container {
        flex-direction: column !important;
        padding: 0.5rem !important;
    }
    
    .theme-bright .chat-main-card {
        min-height: 50vh !important;
    }
    
    .theme-bright .sidebar-panel {
        margin-top: 0.5rem !important;
    }
}

/* Print Styles */
@media print {
    .theme-bright .sidebar,
    .theme-bright .mobile-header,
    .theme-bright .btn-toolbar,
    .theme-bright .sidebar-overlay {
        display: none !important;
    }
    
    .theme-bright .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .theme-bright .card {
        break-inside: avoid !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}


