@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@400;600;700&display=swap");

:root {
    --bg: #07091a;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --surface-alt: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.22);
    --text: #e8edf5;
    --muted: rgba(232, 237, 245, 0.52);
    --bs-body-color: var(--text);
    --bs-body-color-rgb: 232, 237, 245;
    --bs-emphasis-color: #fff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(232, 237, 245, 0.7);
    --bs-secondary-color-rgb: 232, 237, 245;
    --bs-tertiary-color: rgba(232, 237, 245, 0.55);
    --bs-tertiary-color-rgb: 232, 237, 245;
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --accent-warm: #a78bfa;
    --schedule-day-text: #bfdbfe;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    --glow-accent: 0 0 24px rgba(96, 165, 250, 0.25);
    --glow-warm: 0 0 24px rgba(167, 139, 250, 0.2);
    --color-scheme: dark;
}

[data-bs-theme="light"] {
    --bg: #eceff3;                    /* off-white gray page canvas */
    --surface: #ffffff;              /* solid white cards / inputs */
    --surface-strong: #eef1f6;       /* light gray chips, secondary btns, hovers */
    --surface-alt: #f4f6f9;          /* striped rows, disabled, subtle fills */
    --border: #d5dbe3;               /* clearly visible hairline */
    --border-strong: #b7c0cc;        /* stronger divider / control outline */
    --text: #101828;                 /* near-black body text (high contrast) */
    --muted: #4b5563;                /* readable secondary gray (~7:1 on white) */
    --bs-body-color: var(--text);
    --bs-body-color-rgb: 16, 24, 40;
    --bs-emphasis-color: #000;
    --bs-emphasis-color-rgb: 0, 0, 0;
    --bs-secondary-color: #4b5563;
    --bs-secondary-color-rgb: 75, 85, 99;
    --bs-tertiary-color: #6b7280;
    --bs-tertiary-color-rgb: 107, 114, 128;
    --accent: #1d4ed8;               /* blue-700, ~7:1 on white */
    --accent-soft: rgba(29, 78, 216, 0.09);
    --accent-warm: #6d28d9;          /* violet-700, high contrast */
    --schedule-day-text: #1e3a8a;
    --shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
    --glow-accent: 0 0 0 rgba(0, 0, 0, 0);
    --glow-warm: 0 0 0 rgba(0, 0, 0, 0);
    --color-scheme: light;
}

html, body {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    color-scheme: var(--color-scheme);
}

body {
    background-image:
        radial-gradient(ellipse at 15% 0%,   rgba(99, 102, 241, 0.38) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 5%,   rgba(14, 165, 233, 0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 55% 85%,  rgba(139, 92, 246, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 0%  60%,  rgba(16, 185, 129, 0.1)  0%, transparent 40%);
    background-attachment: fixed;
}

[data-bs-theme="light"] body {
    /* Keep the light canvas a near-neutral off-white gray — just a whisper of
       tint so it isn't clinically flat, nowhere near enough to muddy contrast. */
    background-image:
        radial-gradient(ellipse at 15% 0%,  rgba(37, 99, 235, 0.035) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 5%,  rgba(109, 40, 217, 0.03)  0%, transparent 50%);
    background-attachment: fixed;
}

/* ── Light-mode component polish ──
   Cards, menus and modals bake in heavy near-black shadows tuned for the dark
   canvas; on white/off-white they read as grime. Swap in soft neutral shadows
   and lift a few dark-tuned status colors to AA contrast on light surfaces. */
[data-bs-theme="light"] .card {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
}

[data-bs-theme="light"] .project-section {
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

[data-bs-theme="light"] .project-section:not([open]) {
    background: #f5f3fb;
    border-color: rgba(109, 40, 217, 0.28);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

[data-bs-theme="light"] .dropdown-menu,
[data-bs-theme="light"] .skill-action-dropdown {
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

[data-bs-theme="light"] .modal-content {
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
}

[data-bs-theme="light"] .modal-backdrop {
    background: rgba(16, 24, 40, 0.45);
}

[data-bs-theme="light"] .bg-success {
    color: #15803d !important;
    background: rgba(22, 163, 74, 0.14) !important;
    border-color: rgba(22, 163, 74, 0.30);
}

[data-bs-theme="light"] .btn-outline-success {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(22, 163, 74, 0.06);
}

[data-bs-theme="light"] .btn-outline-primary {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.06);
}


/* ── Typography ── */
h1, h2, h3, h4, h5 {
    font-family: "Sora", "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    letter-spacing: -0.2px;
    font-weight: 600;
}

h1 { font-size: 2rem; }

@media (min-width: 641px) {
    h1 { font-size: 1.85rem; }
}

p, label, .form-label, .form-text {
    color: var(--muted);
}

a, .btn-link {
    color: var(--accent);
}

a:hover, .btn-link:hover {
    color: #93c5fd;
}

[data-bs-theme="light"] a:hover,
[data-bs-theme="light"] .btn-link:hover {
    color: #1d4ed8;
}

/* ── Buttons ── */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.15px;
    transition: all 0.18s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: 1px solid rgba(99, 102, 241, 0.6);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border-color: rgba(79, 70, 229, 0.7);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--text);
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    color: var(--bs-emphasis-color);
    background: var(--surface-strong);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: var(--muted);
    background: var(--surface-alt);
    border-color: var(--border);
}

.btn-outline-secondary:hover {
    color: var(--text);
    background: var(--surface-strong);
    border-color: var(--border-strong);
}

.btn-outline-success {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.05);
}

.btn-outline-success:hover {
    color: var(--bs-emphasis-color);
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.6);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.06);
}

.btn-outline-primary:hover {
    color: var(--bs-emphasis-color);
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.6);
}

.btn-outline-light {
    color: var(--muted);
    border-color: var(--border);
    background: transparent;
}

.btn-outline-light:hover {
    color: var(--text);
    background: var(--surface-strong);
    border-color: var(--border-strong);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    border-radius: 10px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-link {
    color: var(--accent);
}

.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.18rem rgba(96, 165, 250, 0.35);
    outline: none;
}

/* ── Cards ── */
.card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.card-body {
    color: var(--text);
}

/* ── Tables ── */
.table {
    color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: var(--surface-alt);
    --bs-table-hover-bg: var(--surface);
}

.table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-strong);
    background: transparent;
}

.table td, .table th {
    border-color: var(--border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: var(--surface-alt);
    color: var(--text);
}

.table-sm td, .table-sm th {
    color: var(--text);
}

.table > tbody > tr.schedule-day-row > * {
    --bs-table-bg-type: var(--accent-soft) !important;
    --bs-table-bg-state: var(--accent-soft) !important;
    color: var(--schedule-day-text);
    border-top: 1px solid rgba(96, 165, 250, 0.35);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.schedule-day-label {
    color: var(--accent);
    font-family: "Sora", "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.02em;
}

.table > tbody > tr.schedule-location-row > * {
    --bs-table-bg-type: rgba(167, 139, 250, 0.09) !important;
    --bs-table-bg-state: rgba(167, 139, 250, 0.09) !important;
    color: var(--text);
    border-bottom: 1px solid rgba(167, 139, 250, 0.18);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.schedule-location-label {
    color: var(--accent-warm);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-right: 0.45rem;
    text-transform: uppercase;
}

/* ── Forms ── */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    backdrop-filter: blur(8px);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control::placeholder {
    color: var(--muted);
}

.form-control:focus, .form-select:focus {
    background: var(--surface-strong);
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18), 0 0 16px rgba(96, 165, 250, 0.12);
}

.form-control:disabled, .form-select:disabled {
    background: var(--surface-alt);
    color: var(--muted);
    border-color: var(--border);
}

.form-select option {
    background: var(--bg);
    color: var(--text);
}

.form-check-input {
    background-color: var(--surface-strong);
    border-color: var(--border-strong);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    color: var(--text);
}

/* ── Alerts ── */
.alert {
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #86efac;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fde68a;
}

.alert-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
}

.alert-info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #bfdbfe;
}

/* Light-mode contrast overrides: the alert/validation/error text colors above
   are tuned for a dark background and are unreadable on the light surface. */
[data-bs-theme="light"] .alert-success {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.35);
    color: #15803d;
}

[data-bs-theme="light"] .alert-danger {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

[data-bs-theme="light"] .alert-warning {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.35);
    color: #92400e;
}

[data-bs-theme="light"] .alert-info {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.35);
    color: #1e40af;
}

[data-bs-theme="light"] .validation-message,
[data-bs-theme="light"] .invalid-feedback {
    color: #b91c1c;
}

[data-bs-theme="light"] .blazor-error-boundary {
    color: #7f1d1d;
}

/* ── Badge ── */
.badge {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.bg-primary {
    background: rgba(96, 165, 250, 0.2) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.bg-success {
    background: rgba(74, 222, 128, 0.2) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.bg-secondary {
    background: var(--surface-strong) !important;
    color: var(--muted) !important;
    border: 1px solid var(--border);
}

/* ── Content ── */
.content {
    padding-top: 0.75rem;
}

/* ── Project sections ── */
.project-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 0.85rem 1rem 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-section:not([open]) {
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(167, 139, 250, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.project-section-summary {
    cursor: pointer;
    list-style: none;
    gap: 0.75rem;
    padding-left: 1.8rem;
    position: relative;
}

.project-section-summary::-webkit-details-marker {
    display: none;
}

.project-section-summary::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-60%) rotate(-45deg);
    transition: transform 0.18s ease;
}

.project-section[open] .project-section-summary::before {
    transform: translateY(-50%) rotate(45deg);
}

.project-section:not([open]) .project-section-summary {
    margin-bottom: 0 !important;
}

.project-section:not([open]) .project-section-summary h2 {
    color: var(--accent-warm);
}

.project-section:not([open]) .project-section-summary::after {
    content: "Collapsed";
    color: rgba(167, 139, 250, 0.7);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Validation ── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #4ade80;
}

.invalid {
    outline: 1px solid #f87171;
}

.validation-message {
    color: #f87171;
    font-size: 0.85rem;
}

/* ── Blazor error UI ── */
#blazor-error-ui {
    color-scheme: var(--color-scheme);
    background: rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(239, 68, 68, 0.35);
    bottom: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.65rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fca5a5;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fca5a5;
    backdrop-filter: blur(12px);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ── Loading screen ── */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--border);
    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;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.6));
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--muted);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ── Code ── */
code {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.1);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

[data-bs-theme="light"] code {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.10);
}

/* ── Misc Bootstrap overrides ── */
.text-muted {
    color: var(--muted) !important;
}

.text-dark,
.text-black,
.text-body,
.text-body-emphasis,
.text-dark-emphasis {
    color: var(--text) !important;
}

.text-black-50 {
    color: var(--muted) !important;
}

.text-bg-info,
.bg-info {
    background-color: #075985 !important;
    color: #fff !important;
}

.text-bg-warning,
.bg-warning {
    background-color: #92400e !important;
    color: #fff !important;
}

.text-bg-light,
.bg-light {
    background-color: var(--surface-strong) !important;
    color: var(--bs-emphasis-color) !important;
}

.border {
    border-color: var(--border) !important;
}

.dropdown-menu {
    background: var(--bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    color: var(--text);
}

.dropdown-item {
    color: var(--text);
    border-radius: 8px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(96, 165, 250, 0.12);
    color: var(--text);
}

.modal-content {
    background: var(--bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: var(--text);
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    border-top: 1px solid var(--border);
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.list-group-item {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--muted);
}

/* ── Mobile ── */
@media (max-width: 640.98px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }

    .btn {
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .btn-sm {
        min-height: 38px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.1rem;
    }

    /* Prevent long text from forcing table-responsive to scroll */
    .table td {
        word-break: break-word;
    }

    /* Keep action button cells on one line */
    .table td:last-child {
        white-space: nowrap;
    }

    /* Tighten article padding on small phones */
    article {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* ── Skill action dropdown ── */
.skill-action-menu {
    position: relative;
    display: inline-block;
}

.skill-action-toggle {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
}

.skill-action-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.3rem);
    bottom: auto;
    min-width: 14rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.45rem;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 1000;
    text-align: left;
}

.skill-action-dropdown--up {
    top: auto;
    bottom: calc(100% + 0.3rem);
}

.skill-action-dropdown--left {
    right: auto;
    left: 0;
}

.skill-star-split {
    display: inline-flex;
}

.skill-star-split .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.skill-star-split .btn:nth-child(2) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.skill-action-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.42rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.13s ease, color 0.13s ease;
    cursor: pointer;
    white-space: nowrap;
}

.skill-action-item:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.13);
    color: var(--text);
}

.skill-action-item.skill-action-danger {
    color: #fca5a5;
}

.skill-action-item.skill-action-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.12);
}

.skill-action-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.skill-action-divider {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0.4rem;
}

.skill-action-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 999;
}

.schedule-drag-handle {
    cursor: grab;
    user-select: none;
    display: inline-block;
    touch-action: none;
    min-width: 2rem;
    min-height: 2rem;
    line-height: 2rem;
    text-align: center;
    font-size: 1.25rem;
}

.schedule-drag-handle:active {
    cursor: grabbing;
}

.schedule-move-btn {
    min-height: 2.75rem;
    min-width: 4.5rem;
    touch-action: manipulation;
}

.schedule-slot-row.schedule-slot-move-ready,
.schedule-class-row.schedule-row-move-ready {
    outline: 2px dashed var(--accent);
    outline-offset: -2px;
    cursor: pointer;
}

.schedule-slot-move-ready td {
    color: var(--text);
}

.schedule-class-row.schedule-row-dragging {
    opacity: 0.55;
}

.schedule-class-row.schedule-row-drop-target,
.schedule-slot-row.schedule-row-drop-target {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.schedule-slot-empty {
    min-height: 2.5rem;
}

.schedule-slot-empty td {
    color: var(--muted);
}

.schedule-slot-blocked td {
    color: var(--muted);
    background-color: rgba(0, 0, 0, 0.03);
}

.schedule-class-unscheduled td {
    background-color: rgba(0, 0, 0, 0.02);
}


