:root {
    --stud-navy: #17324d;
    --stud-navy-2: #244f74;
    --stud-gold: #d9a441;
    --stud-bg: #f5f7fb;
    --stud-text: #1e293b;
}

body {
    min-height: 100vh;
    background: var(--stud-bg);
    color: var(--stud-text);
}

.app-shell {
    min-height: 100vh;
    background: var(--stud-bg);
}

.page-grid {
    min-height: 100vh;
    display: grid;
}

@media (min-width: 1024px) {
    .page-grid {
        grid-template-columns: 18rem minmax(0, 1fr);
    }
}

.sidebar {
    min-height: 100vh;
    padding: 1.5rem;
    color: #fff;
    background: linear-gradient(180deg, var(--stud-navy), var(--stud-navy-2));
}

.main-content {
    padding: 1rem;
}

@media (min-width: 1024px) {
    .main-content {
        padding: 2rem;
    }
}

@media (min-width: 1280px) {
    .main-content {
        padding: 2.5rem;
    }
}

.nav-link {
    display: block;
    margin-bottom: 0.25rem;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.panel,
.card-stat,
.section-card {
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
}

.panel {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card-stat {
    box-shadow: 0 12px 30px rgba(36, 63, 103, 0.08);
}

.section-card {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.panel-body {
    padding: 1.25rem;
}

@media (min-width: 1024px) {
    .panel-body {
        padding: 1.5rem;
    }
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(23, 50, 77, 0.08);
    padding: 0.25rem 0.75rem;
    color: var(--stud-navy);
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-column {
    min-height: 20rem;
    height: 100%;
    border-radius: 1rem;
    background: rgb(241 245 249);
    padding: 1rem;
}

.kanban-card,
.calendar-card,
.quick-action {
    border-radius: 1rem;
    background: #fff;
}

.kanban-card {
    border: 1px solid rgb(241 245 249);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.quick-action {
    border: 1px dashed rgb(203 213 225);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 1rem;
}

@media (min-width: 1280px) {
    .form-card {
        position: sticky;
        top: 1.5rem;
    }
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at top right, rgba(217, 164, 65, 0.25), transparent 32%),
        linear-gradient(135deg, #17324d, #244f74);
}

.app-alert {
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.app-alert-success {
    border-color: rgb(167 243 208);
    background: rgb(236 253 245);
    color: rgb(6 95 70);
}

.app-alert-danger {
    border-color: rgb(254 205 211);
    background: rgb(255 241 242);
    color: rgb(159 18 57);
}

.app-alert-info {
    border-color: rgb(186 230 253);
    background: rgb(240 249 255);
    color: rgb(7 89 133);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.btn-primary {
    border-color: var(--stud-navy);
    background: var(--stud-navy);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.95;
}

.btn-dark {
    border-color: rgb(15 23 42);
    background: rgb(15 23 42);
    color: #fff;
}

.btn-dark:hover {
    background: rgb(30 41 59);
}

.btn-outline-primary {
    border-color: var(--stud-navy);
    background: #fff;
    color: var(--stud-navy);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
    background: rgb(248 250 252);
}

.btn-outline-secondary {
    border-color: rgb(203 213 225);
    background: #fff;
    color: rgb(51 65 85);
}

.btn-outline-danger {
    border-color: rgb(253 164 175);
    background: #fff;
    color: rgb(190 24 93);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgb(51 65 85);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.625rem 1rem;
    color: rgb(15 23 42);
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--stud-navy);
    outline: 2px solid rgba(23, 50, 77, 0.15);
    outline-offset: 0;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-label {
    color: rgb(51 65 85);
    font-size: 0.875rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--stud-navy);
}

.form-switch .form-check-input {
    width: 2.25rem;
    height: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.text-bg-primary { background: rgb(219 234 254); color: rgb(30 64 175); }
.text-bg-success { background: rgb(220 252 231); color: rgb(6 95 70); }
.text-bg-secondary { background: rgb(226 232 240); color: rgb(51 65 85); }
.text-bg-warning { background: rgb(254 243 199); color: rgb(146 64 14); }
.text-bg-danger { background: rgb(255 228 230); color: rgb(159 18 57); }
.text-bg-info { background: rgb(224 242 254); color: rgb(7 89 133); }
.text-bg-light {
    background: #fff;
    color: rgb(51 65 85);
    box-shadow: inset 0 0 0 1px rgb(226 232 240);
}

.progress {
    height: 0.75rem;
    overflow: hidden;
    border-radius: 9999px;
    background: rgb(226 232 240);
}

.progress-bar {
    height: 100%;
    border-radius: 9999px;
    background: var(--stud-navy);
}

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

.table th {
    background: rgb(248 250 252);
    padding: 0.75rem 1rem;
    text-align: left;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: top;
    color: rgb(51 65 85);
    font-size: 0.875rem;
}

.table tbody tr + tr td {
    border-top: 1px solid rgb(241 245 249);
}

.table tbody tr:hover td {
    background: rgba(248, 250, 252, 0.85);
}

.calendar-bucket {
    height: 100%;
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    background: rgb(248 250 252);
    padding: 1rem;
}

.calendar-card {
    margin-bottom: 0.5rem;
    border: 1px solid rgb(226 232 240);
    padding: 1rem;
}
