/**
 * ==============================================================
 * SIP-PJTKI: Custom Stylesheet
 * Modern Glassmorphic / Clean Enterprise Dashboard Theme
 * ==============================================================
 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #2563eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 270px;
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    color: #94a3b8;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 12px 18px;
    margin: 4px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.sidebar .nav-link i {
    font-size: 1.15rem;
    width: 28px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: var(--sidebar-hover);
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--sidebar-active);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sidebar-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    padding: 16px 22px 6px;
    font-weight: 700;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Navbar */
.top-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 28px;
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
    background: #ffffff;
}

.card:hover {
    box-shadow: var(--card-hover-shadow);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 24px;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.card-body {
    padding: 24px;
}

/* Stat Cards */
.stat-card {
    border-radius: 18px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.stat-card .stat-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    opacity: 0.2;
}

.stat-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.stat-emerald { background: linear-gradient(135deg, #059669, #047857); }
.stat-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.stat-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.stat-rose { background: linear-gradient(135deg, #e11d48, #be123c); }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker.success { border-color: #10b981; }
.timeline-marker.warning { border-color: #f59e0b; }
.timeline-marker.danger { border-color: #ef4444; }

.timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

/* Stepper Progress Bar */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 3px solid #cbd5e1;
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 2;
}

.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 3px solid #cbd5e1;
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 2;
}

.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.stepper-item.completed .step-counter {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.stepper-item.completed::after {
    border-bottom-color: #10b981;
}

.stepper-item.completed::before {
    border-bottom-color: #10b981;
}

.stepper-item.active .step-counter {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.stepper-item.first::before {
    content: none;
}

.stepper-item.last::after {
    content: none;
}

.step-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.stepper-item.active .step-name {
    color: #2563eb;
}

.stepper-item.completed .step-name {
    color: #0f172a;
}

/* Table styling */
.table th {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.table td {
    vertical-align: middle;
    font-size: 0.92rem;
}

/* Badge styling */
.badge {
    font-weight: 600;
}

/* Print CSS */
@media print {
    .sidebar, .top-navbar, .no-print, .btn, .alert, footer {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}
