/* TEACHER ASSISTANT STYLES */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&display=swap');

:root {
    --primary: #0054fb;
    --primary-hover: #0046d6;
    --primary-soft: #eef4ff;
    --primary-light: rgba(0, 84, 251, 0.10);
    --secondary: #3b82f6;
    --brand-blue: #0054fb;
    --brand-navy: #0b192c;
    --background: #F7F9FC;
    --bg-main: #F7F9FC;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --border: #D9E2EC;
    --border-hover: #BCCCDC;
    --text-primary: #0b192c;
    --text-main: #0b192c;
    --text-secondary: #334e68;
    --text-muted: #627D98;
    --text-light: #829AB1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0054fb;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(11, 25, 44, 0.06);
    --shadow-md: 0 4px 12px rgba(11, 25, 44, 0.08);
    --shadow-lg: 0 10px 25px rgba(11, 25, 44, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body, button, input, select, textarea {
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.app-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo {
    height: 38px;
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-icon {
    font-size: 32px;
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.brand-text .subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.header-status-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-pill {
    background: var(--bg-main);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border);
    letter-spacing: 0.2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #F8FAFC;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94A3B8;
}

.status-badge.connected {
    background: rgba(25, 181, 122, 0.12);
    border-color: rgba(25, 181, 122, 0.35);
    color: #0E8557;
}

.status-badge.connected .dot {
    background: var(--success);
}

/* NAVIGATION TABS */
.app-nav {
    background: var(--bg-surface);
    display: flex;
    padding: 0 32px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.nav-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px 6px 0 0;
}

.nav-tab:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-tab.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* MAIN CONTENT */
.app-main {
    flex: 1;
    padding: 32px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* BANNER */
.dashboard-banner {
    background: linear-gradient(135deg, #0F172A 0%, #102A43 100%);
    color: #FFFFFF;
    padding: 28px 36px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    border-left: 5px solid var(--primary);
}

.banner-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.banner-info p {
    color: #BAE3FF;
    font-size: 14px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-cta {
    background: linear-gradient(135deg, #1677FF 0%, #1268E5 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(22, 119, 255, 0.35);
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 119, 255, 0.45);
}

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
}

.btn-danger:hover {
    background: #CF1322;
}

.btn-danger-soft {
    background: #FFF1F0;
    color: #E55353;
    border: 1px solid #FFA39E;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger-soft:hover {
    background: #FFCCC7;
    color: #CF1322;
    border-color: #FF7875;
}

/* LESSONS CARDS */
.lessons-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lesson-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lesson-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 14px;
}

.time-class-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-time {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 6px;
}

.badge-class {
    background: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 800;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 6px;
}

.badge-lang {
    background: #F1F5F9;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-room {
    background: #EEF2FF;
    color: #4F46E5;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.lesson-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lesson-subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lesson-topic {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
}

.lesson-objective-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #F8FAFC;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.objective-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.objective-confidence {
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
}

.objective-confidence.high {
    background: #DCFCE7;
    color: #15803D;
}

.objective-confidence.low {
    background: #FEF3C7;
    color: #B45309;
}

.lesson-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.materials-btn-group {
    display: flex;
    gap: 10px;
}

.gen-status-pill {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.gen-status-pill.ready {
    background: #DCFCE7;
    color: #15803D;
}

.gen-status-pill.pending {
    background: #F1F5F9;
    color: var(--text-muted);
}

.gen-status-pill.generating {
    background: #FEF3C7;
    color: #B45309;
}

/* GENERATION PROGRESS BAR */
.gen-progress-wrapper {
    margin-top: 10px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
}

.gen-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.gen-progress-track {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.gen-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* SETTINGS VIEW */
.settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}

.settings-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: fit-content;
    position: sticky;
    top: 24px;
}

.set-nav-link {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.set-nav-link:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.set-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-hover);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.settings-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--secondary);
}

.settings-card .card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-row {
    display: flex;
    gap: 16px;
}

.flex-1 {
    flex: 1;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.input-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-unit input {
    width: 80px;
}

.color-picker {
    height: 42px;
    padding: 2px 6px;
    cursor: pointer;
    width: 100%;
}

.signature-settings-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.sig-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sig-canvas {
    width: 220px;
    height: 120px;
    border: 1px dashed var(--border-hover);
    border-radius: 8px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sig-canvas img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.test-result-box {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.test-result-box.success {
    display: block;
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.test-result-box.error {
    display: block;
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

.test-result-box.warning {
    display: block;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    white-space: pre-line;
}

.test-result-box.info {
    display: block;
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
    white-space: pre-line;
}

.select-with-refresh {
    display: flex;
    gap: 8px;
    align-items: center;
}

.select-with-refresh select {
    flex: 1;
}

.input-with-action {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-with-action input {
    flex: 1;
}

/* KTP LIST */
.ktp-item-card {
    background: #F8FAFC;
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ktp-item-info h4 {
    font-size: 15px;
    color: var(--secondary);
}

.ktp-item-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* HISTORY TABLE */
.history-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.table-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.table-actions input {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #F8FAFC;
    font-weight: 600;
    color: var(--text-muted);
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.show,
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-xl {
    max-width: 900px;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-sub {
    font-size: 14px;
    color: var(--primary-hover);
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ktp-items-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.ktp-choice-row {
    padding: 10px 14px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: background 0.15s;
}

.ktp-choice-row:hover {
    background: var(--primary-light);
}

.ktp-choice-row.selected {
    background: rgba(16, 185, 129, 0.2);
    border-left: 3px solid var(--primary);
}

/* TOASTS */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* SCHEDULE DATE NAVIGATION */
.schedule-date-navigation {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.date-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-date-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quick-date {
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick-date:hover {
    background: #E2E8F0;
}

.btn-quick-date.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.date-picker-input {
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
}

.week-days-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .week-days-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .week-days-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.week-day-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

.week-day-card:hover {
    background: var(--primary-soft);
    border-color: #BCCCDC;
    transform: translateY(-2px);
}

.week-day-card.active {
    background: #FFFFFF;
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 4px 14px rgba(22, 119, 255, 0.20);
}

.week-day-card.is-today {
    outline: 2px dashed var(--primary);
    outline-offset: 2px;
}

.day-header-short, .day-header-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.week-day-card.active .day-header-short,
.week-day-card.active .day-header-name {
    color: var(--primary);
}

.day-date-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.week-day-card.active .day-date-number {
    color: var(--primary);
}

.day-month-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.day-badge {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.day-badge.has-lessons {
    background: var(--primary-soft);
    color: var(--primary);
}

.week-day-card.active .day-badge.has-lessons {
    background: var(--primary);
    color: #FFFFFF;
}

.day-badge.empty {
    background: #F1F5F9;
    color: var(--text-light);
}

/* LANGUAGE BADGES */
.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.lang-badge.ru {
    background: #E0E7FF;
    color: #3730A3;
}

.lang-badge.kk {
    background: #DCFCE7;
    color: #166534;
}

.lang-badge.uzb-kk {
    background: #FEF3C7;
    color: #92400E;
    border: 1px dashed #F59E0B;
}

/* MATERIALS SECTION */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.material-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.material-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.material-icon {
    font-size: 28px;
}

.material-info {
    flex: 1;
    overflow: hidden;
}

.material-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.material-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}



/* BILIMCLASS VISUAL REFINEMENTS */
.btn-generate {
    background: linear-gradient(135deg, #1677FF 0%, #1268E5 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 9px 22px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(22, 119, 255, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-generate:hover {
    background: linear-gradient(135deg, #1268E5 0%, #0d5bd1 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.35) !important;
}

.btn-generating {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    cursor: not-allowed !important;
}

.ready-actions-group {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-ready-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(25, 181, 122, 0.12);
    color: #0E8557;
    border: 1px solid rgba(25, 181, 122, 0.3);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.btn-ready-badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.lesson-artifacts-chips {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.chip-file {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.chip-file:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.footer-left-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-warning {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
    font-weight: 600 !important;
}

.btn-warning:hover {
    background: #fef3c7 !important;
}


/* BILIMCLASS INITIAL AUTH OVERLAY */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: fadeInScale 0.25s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    height: 46px;
    max-height: 50px;
    max-width: 260px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
}

.auth-logo-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.auth-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.auth-loading-box {
    text-align: center;
    padding: 24px 10px;
}

.auth-loading-box .spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.auth-error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-card-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* WEEKEND STATE CARD */
.weekend-state-card {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    margin-top: 16px;
}

.weekend-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.weekend-state-title {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.weekend-state-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================================
   BILIMCLASS: COMPLETE TODAY LESSONS STYLES
   ======================================================== */

.btn-complete-header {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF !important;
    border: 1px solid #059669;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.22);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.btn-complete-header:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.36);
    transform: translateY(-1px);
}

.btn-complete-header:active {
    transform: translateY(0);
}

.btn-complete-today {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.btn-complete-today:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-complete-today:active {
    transform: translateY(0);
}

/* Badge in lesson header */
.badge-bilimclass-completed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Pills in lesson footer */
.btn-complete-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #10b981;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-complete-pill:hover {
    background: #10b981;
    color: #ffffff;
}

.btn-completed-pill {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-completed-pill:hover {
    background: #dcfce7;
}

/* Confirmation modal styles */
.complete-modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.complete-date-badge {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

.complete-count-badge {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
}

.complete-lessons-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding-right: 4px;
}

.complete-lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    gap: 12px;
    transition: background 0.15s ease;
}

.complete-lesson-item:hover {
    background: #f8fafc;
}

.complete-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.complete-item-num {
    font-weight: 700;
    color: #94a3b8;
    font-size: 12px;
    width: 20px;
}

.complete-item-center {
    flex: 1;
    min-width: 0;
}

.complete-item-topic {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.complete-item-subject {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.complete-item-right {
    flex-shrink: 0;
}

.complete-info-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #1e40af;
    line-height: 1.4;
}

/* Progress modal styles */
.complete-progress-bar-wrap {
    background: #e2e8f0;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.complete-progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.complete-progress-status-text {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 16px;
}

.complete-results-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.complete-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 10px 14px;
    gap: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.complete-result-row.completed {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.complete-result-row.already_completed {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.complete-result-row.failed {
    border-color: #fecaca;
    background: #fef2f2;
}

.result-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.result-row-topic {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-row-right {
    flex-shrink: 0;
}

.complete-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.complete-status-badge.completed {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.complete-status-badge.already {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.complete-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.complete-status-badge.skipped {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.complete-status-badge.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* RESPONSIVE HEADER ADAPTATION */
@media (max-width: 1280px) {
    .app-header {
        padding: 12px 20px;
    }
    .header-status-group {
        gap: 6px;
    }
    .btn-complete-header {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }
    .header-status-group {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ========================================================
   SECTION: AUTOMATION STYLES
   ======================================================== */
.automation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.automation-title-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 4px;
}

/* Period Selector */
.automation-period-container {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.automation-period-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.automation-period-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary, #475569);
}

.automation-period-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-period {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-period:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-period.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.automation-custom-dates {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.automation-custom-dates label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Warning Banner for weekend / empty */
.automation-warning-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeIn 0.2s ease-in;
}

.automation-warning-banner .warning-icon {
    font-size: 20px;
}

/* 3 Action Cards */
.automation-action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 980px) {
    .automation-action-cards {
        grid-template-columns: 1fr;
    }
}

.auto-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.auto-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.auto-card-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #eff6ff;
    color: #2563eb;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
}

.auto-card-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.auto-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.auto-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.auto-card-btn {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 10px 16px;
    font-weight: 600;
}

/* Master Button */
.automation-master-bar {
    margin-bottom: 28px;
}

.btn-master-action {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.btn-master-action:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
}

.btn-master-action:active {
    transform: translateY(0);
}

.master-icon {
    font-size: 28px;
}

.master-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.master-text strong {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.master-text span {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

/* Bulk Toggles & Lessons Table */
.automation-lessons-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.automation-lessons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.automation-lessons-summary {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.automation-bulk-toggles {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bulk-toggle-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.bulk-toggle-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Date Group & Lesson Rows */
.auto-date-group {
    margin-bottom: 24px;
}

.auto-date-group-header {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auto-date-group-badge {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.auto-lesson-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auto-lesson-row:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auto-lesson-row.completed-lesson {
    background: #fbfdfb;
}

.auto-lesson-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.auto-lesson-num {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    width: 24px;
    text-align: center;
}

.auto-lesson-time {
    font-size: 12px;
    color: #94a3b8;
    min-width: 80px;
}

.auto-lesson-class-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #1e293b;
    white-space: nowrap;
}

.auto-lang-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.auto-lang-tag.ru {
    background: #dbeafe;
    color: #1e40af;
}

.auto-lang-tag.kz {
    background: #dcfce7;
    color: #15803d;
}

.auto-lang-tag.uz {
    background: #ffedd5;
    color: #c2410c;
}

.auto-lesson-details {
    flex: 1;
    min-width: 0;
}

.auto-lesson-subject {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auto-lesson-topic {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.auto-lesson-hw-preview {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-lesson-hw-input {
    flex: 1;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    background: #f8fafc;
}

.auto-lesson-hw-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    outline: none;
}

.auto-lesson-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.auto-action-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.auto-action-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Modals & Progress UI */
.auto-progress-step-indicator {
    font-size: 14px;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    display: inline-block;
}

.auto-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.auto-metric-pill {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    border: 1px solid transparent;
}

.auto-metric-pill.total {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.auto-metric-pill.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.auto-metric-pill.skipped {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.auto-metric-pill.failed {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.auto-console-container {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 12px;
    max-height: 260px;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.auto-console-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.log-time {
    color: #64748b;
    flex-shrink: 0;
}

.log-text {
    flex: 1;
}

.log-entry.info .log-text { color: #cbd5e1; }
.log-entry.success .log-text { color: #4ade80; }
.log-entry.warning .log-text { color: #fbbf24; }
.log-entry.error .log-text { color: #f87171; }

/* ========================================================
   ONAYSABAQ 2.0 STYLES (Landing, Auth, Admin, Extension)
   ======================================================== */

.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, #eff6ff 0%, #f8fafc 100%);
    padding: 40px 20px;
}

.landing-content {
    max-width: 760px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.12);
}

.landing-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 32px;
    max-width: 600px;
}

.landing-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-google-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .landing-features {
        grid-template-columns: 1fr;
    }
    .landing-title {
        font-size: 32px;
    }
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card span {
    font-size: 32px;
    display: inline-block;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* User Profile Pill */
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.badge-role {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-role.ADMIN, .badge-role.SUPERADMIN {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.badge-role.USER {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Admin Table */
.admin-users-table th, .admin-users-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.admin-users-table tr:hover td {
    background: #f8fafc;
}

.badge-status-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #86efac;
}

.badge-status-blocked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
}

.badge-plan {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.badge-plan.PRO {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #c4b5fd;
}

.badge-plan.FREE {
    background: #f8fafc;
    color: #475569;
}

/* Dashboard Styles */
.dashboard-welcome-banner {
    background: linear-gradient(135deg, #0054fb 0%, #0036a6 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 84, 251, 0.22);
}

.dashboard-welcome-banner h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.dashboard-welcome-banner p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.5;
}

.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.metric-data .metric-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-data .metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.dashboard-quick-actions {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}

.dashboard-quick-actions h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.quick-action-btns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Admin Subnavigation */
.admin-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.admin-subnav-btn {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-subnav-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.admin-subnav-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.admin-settings-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-settings-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-settings-card .card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.admin-test-result {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
}

.admin-test-result.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.admin-test-result.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.admin-test-result.loading {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}



