/* assets/style.css */

:root {
    --primary-gradient: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565c0 100%);
    --purple: #7c3aed;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* Navbar */
.bg-primary-gradient {
    background: var(--primary-gradient) !important;
}

/* Badge S3 color */
.bg-purple {
    background-color: var(--purple) !important;
}

.progress-bar.bg-purple {
    background-color: var(--purple) !important;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prodi List */
.prodi-list-scroll {
    max-height: 600px;
    overflow-y: auto;
}

.prodi-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.prodi-list-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.prodi-list-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.prodi-item {
    color: #333;
    transition: background-color 0.15s ease;
}

.prodi-item:hover {
    background-color: #e8f0fe;
    color: #333;
}

.prodi-item.active {
    background-color: #1a73e8;
    color: #fff;
    border-color: #1a73e8 !important;
}

.prodi-item.active small {
    color: rgba(255,255,255,0.75) !important;
}

.prodi-item.active .badge {
    background-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

.prodi-item.active .text-success,
.prodi-item.active .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

/* Section blocks */
.section-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.section-block.section-optional {
    border-style: dashed;
    border-color: #cbd5e1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.section-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.section-body {
    padding: 20px;
}

/* Sticky sidebar */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.15);
}

/* Card hover */
.card {
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Table styling */
.table > thead {
    border-bottom: 2px solid #dee2e6;
}

.table > thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
    padding: 12px 8px;
}

.table > tbody td {
    padding: 10px 8px;
    vertical-align: middle;
}

/* Modal */
.modal-header.bg-primary {
    background: var(--primary-gradient) !important;
    border-radius: 0;
}

/* Badge */
.badge {
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Alert */
.alert {
    border-radius: 10px;
}

/* Form check switch */
.form-check-input:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.8s ease-in-out;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
    }
    
    .prodi-list-scroll {
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .section-header {
        flex-wrap: wrap;
    }
    
    .section-header .badge {
        order: -1;
        width: auto;
    }
}

/* Print styles */
@media print {
    .navbar, footer, .btn, .form-control, .form-select {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}