/* ==========================================================================
   Jeewians Unfold Admin Custom Theme & Typography
   ========================================================================== */

/* Modern Font smoothing */
body, input, textarea, select, button {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* KaTeX Math Blocks inside Django Admin */
.katex-display {
    margin: 0.5em 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
}

.katex {
    font-size: 1.05em !important;
}

/* Subject Badges in Admin Lists */
.badge-phy {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.badge-chem {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.badge-math {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

/* Dark mode adjustments for badges */
.dark .badge-phy {
    background-color: rgba(30, 58, 138, 0.3) !important;
    color: #93c5fd !important;
    border-color: rgba(30, 58, 138, 0.6) !important;
}

.dark .badge-chem {
    background-color: rgba(6, 78, 59, 0.3) !important;
    color: #6ee7b7 !important;
    border-color: rgba(6, 78, 59, 0.6) !important;
}

.dark .badge-math {
    background-color: rgba(120, 53, 15, 0.3) !important;
    color: #fcd34d !important;
    border-color: rgba(120, 53, 15, 0.6) !important;
}

/* Table math wrapping */
td.field-text, td.field-title {
    max-width: 480px;
    white-space: normal !important;
    word-break: break-word;
}

/* Live KPI Metric Cards */
.admin-kpi-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.12);
}

/* AI Studio Ingestion Form Styles */
.ai-studio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-studio-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
