/* ============================================
   MYSMARTAPP — DESIGN SYSTEM
   Modern Minimalist Dark Theme
   ============================================ */

/* --- Design Tokens (Dark – default) --- */
:root {
    --bg-primary: #0f0f13;
    --bg-secondary: #16161e;
    --bg-elevated: #1e1e2a;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-input: #1a1a26;

    --sidebar-width: 260px;
    --sidebar-mini-width: 64px;

    --accent: #6c5ce7;
    --accent-hover: #7c6ef7;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --accent-subtle: rgba(108, 92, 231, 0.1);

    --success: #00b894;
    --success-subtle: rgba(0, 184, 148, 0.12);
    --warning: #fdcb6e;
    --warning-subtle: rgba(253, 203, 110, 0.12);
    --danger: #e17055;
    --danger-subtle: rgba(225, 112, 85, 0.12);
    --info: #74b9ff;
    --info-subtle: rgba(116, 185, 255, 0.12);

    --text-primary: #e8e8ee;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --text-inverse: #0f0f13;

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --- Light Theme Overrides --- */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(248, 250, 252, 0.8);
    --bg-input: #f1f5f9;

    --sidebar-width: 260px;
    --sidebar-mini-width: 64px;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-subtle: rgba(99, 102, 241, 0.06);

    --success: #10b981;
    --success-subtle: rgba(16, 185, 129, 0.08);
    --warning: #f59e0b;
    --warning-subtle: rgba(245, 158, 11, 0.08);
    --danger: #ef4444;
    --danger-subtle: rgba(239, 68, 68, 0.08);
    --info: #3b82f6;
    --info-subtle: rgba(59, 130, 246, 0.08);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px var(--accent-glow);
}


/* --- Base Reset & Typography --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

small {
    color: var(--text-secondary);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}



/* --- Unified Console Layout --- */
.console-root {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    overflow: hidden;
}

.console-grid {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    flex: 1;
    min-height: 0;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.console-col {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat area specifics */
.console-chat-area {
    background: var(--bg-primary);
}

@media (max-width: 1200px) {
    .console-grid {
        grid-template-columns: 280px 1fr;
    }

    .console-info-col {
        display: none;
        /* Hide info on smaller screens or make it a drawer */
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* --- Focus States --- */
h1:focus {
    outline: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* --- Buttons --- */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.5rem 1.15rem;
    font-size: 0.8125rem;
    border: none;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

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

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}

.btn-outline-secondary:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(225, 112, 85, 0.3);
}

.btn-outline-danger:hover {
    background: var(--danger-subtle);
    border-color: var(--danger);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}

.btn-outline-dark:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.btn-warning {
    background: var(--warning);
    color: var(--text-inverse);
    border: none;
}

.btn-warning:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.85rem;
    font-size: 0.75rem;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.4;
    pointer-events: none;
    transform: none;
}

/* --- Form Controls --- */
.form-control {
    background-color: var(--bg-input);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    padding: 0.55rem 0.85rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    background-color: var(--bg-input);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background-color: var(--bg-primary);
    color: var(--text-muted);
    opacity: 0.6;
}

.form-control-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
}

textarea.form-control {
    resize: vertical;
}

.form-label {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--text-muted);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* --- Cards --- */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.1rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.card-body {
    padding: 1.1rem;
}

.card-footer {
    background: var(--bg-glass);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* --- Badges --- */
.badge {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    padding: 0.3em 0.65em;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bg-success {
    background-color: var(--success) !important;
    color: #fff;
}

.bg-warning {
    background-color: var(--warning) !important;
    color: var(--text-inverse) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
    color: #fff;
}

.bg-info {
    background-color: var(--info) !important;
    color: var(--text-inverse) !important;
}

.bg-secondary {
    background-color: var(--text-muted) !important;
    color: #fff;
}

.bg-dark {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

.bg-primary {
    background-color: var(--accent) !important;
}

.text-dark {
    color: var(--text-inverse) !important;
}

/* --- Alerts --- */
.alert {
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    border: none;
    padding: 0.75rem 1rem;
}

.alert-warning {
    background: var(--warning-subtle);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.alert-danger {
    background: var(--danger-subtle);
    color: var(--danger);
    border: 1px solid rgba(225, 112, 85, 0.2);
}

.alert-success {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

/* --- Nav Tabs (Operator Console Pills) --- */
.nav-tabs {
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-tabs .nav-link.active {
    color: #fff;
    background: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* --- List Group (Conversation List) --- */
.list-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.list-group-item {
    background: var(--bg-secondary);
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: var(--bg-glass-hover);
}

.list-group-item.active {
    background: var(--accent-subtle);
    border-color: transparent;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
}

.list-group-item-action {
    font-size: 0.8125rem;
}

/* --- Input Group --- */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* --- Utility Overrides --- */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-info {
    color: var(--info) !important;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

.border {
    border-color: var(--border) !important;
}

.border-bottom {
    border-bottom-color: var(--border) !important;
}

.border-primary {
    border-color: var(--accent) !important;
}

.rounded-circle {
    border-radius: var(--radius-full) !important;
}

/* --- Content Area --- */
.content {
    padding-top: 1.25rem;
}

/* --- Loading Progress --- */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* --- Error Handling --- */
#blazor-error-ui {
    background: var(--danger);
    color: #fff;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.8125rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: var(--danger);
    padding: 1rem 1rem 1rem 1rem;
    color: white;
    border-radius: var(--radius-md);
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--danger);
}

.validation-message {
    color: var(--danger);
    font-size: 0.75rem;
}

code {
    color: var(--accent);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-slide-in {
    animation: slideInLeft var(--transition-slow) ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* --- Glassmorphism & Modern Utilities --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-subtle);
    transform: translateY(-2px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 0.5rem;
}

.status-dot-active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot-active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--success);
    animation: pulse 2s infinite;
    opacity: 0.5;
}

.status-dot-inactive {
    background: var(--text-muted);
}

.search-bar-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar-modern i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-bar-modern input {
    padding-left: 2.75rem;
    border-radius: var(--radius-full);
}

.modern-table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    width: 100%;
}

.modern-table tr {
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.modern-table tr:hover {
    background: var(--bg-elevated);
    transform: scale(1.005);
}

.modern-table td,
.modern-table th {
    padding: 1rem 1.25rem;
    border: none;
}

.modern-table tr td:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.modern-table tr td:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.modern-table thead th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    background: transparent;
}

/* --- Enhanced Styled Tabs --- */
.gen-tabs-modern {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.gen-tab-btn-modern {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
    outline: none !important;
}

.gen-tab-btn-modern:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.gen-tab-btn-modern.active {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

/* --- Premium Custom Interval --- */
.custom-interval-premium {
    margin-top: 0.5rem;
}

.premium-input-wrap {
    display: flex;
    align-items: center;
    background: #1a1a27 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.premium-input-wrap:focus-within {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
    background: #1e1e2d !important;
}

.premium-input-wrap i {
    color: #4f46e5;
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.premium-input-wrap input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none !important;
    width: 100%;
    padding: 0;
}

.premium-input-wrap input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.premium-input-wrap input[type="time"] {
    color-scheme: dark;
}

.premium-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
    font-weight: 400;
}

.premium-input-wrap .unit {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 10px;
    background: rgba(108, 92, 231, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

/* Segmented Tabs for Generation Modal */
.gen-tabs-segmented {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 4px;
    margin-bottom: 32px;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}


.gen-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gen-modal-title i {
    color: var(--accent);
    font-size: 1.3rem;
}

.premium-select {
    background: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.premium-select:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
    outline: none;
}

.gen-preview-container {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px;
    min-height: 120px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.slot-chip {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    animation: fadeInScale 0.3s ease forwards;
}

.slot-chip:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

.slot-chip.is-break {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.15));
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.slot-chip.is-break:hover {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.slot-chip .remove-btn {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.slot-chip .remove-btn:hover {
    opacity: 1;
    color: #ef4444;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.gen-tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    z-index: 1;
    letter-spacing: 0.02em;
}

.gen-tab-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.modal-panel-gen {
    width: 95% !important;
    max-width: 800px !important;
    max-height: 94vh !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(108,92,231,0.2);
}

.modal-gen-body {
    overflow-y: auto;
    padding: 0 2rem 1.5rem;
    margin-bottom: 5px;
}

/* Custom scrollbar for premium look */
.modal-gen-body::-webkit-scrollbar {
    width: 6px;
}
.modal-gen-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-gen-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.modal-gen-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}
.gen-tab-item.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.modal-gen-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #11111d;
    z-index: 10;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.gen-modal-title {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.gen-preview-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.gen-preview-container {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    min-height: 100px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-content: flex-start;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.slot-chip {
    background: rgba(108, 92, 231, 0.08);
    color: #fff;
    border: 1px solid rgba(108, 92, 231, 0.15);
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    animation: fadeIn var(--transition-normal) ease forwards;
}

.slot-chip:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}

.slot-chip.is-break {
    background: rgba(225, 112, 85, 0.12);
    color: #e17055;
    border: 1px solid rgba(225, 112, 85, 0.4);
}

.slot-chip.is-break:hover {
    background: rgba(225, 112, 85, 0.2);
    border-color: #e17055;
    box-shadow: 0 4px 12px rgba(225, 112, 85, 0.2);
}

.slot-chip .remove-btn {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.slot-chip.is-break .remove-btn {
    color: #ff4757;
}

.slot-chip .remove-btn:hover {
    color: var(--danger);
}