* {
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #0d7368 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.diklat-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.diklat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.diklat-card .card-header {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.diklat-card .flyer-img + .card-header {
    border-radius: 0 !important;
}

.flyer-img {
    width: 100%;
    object-fit: cover;
}

.status-badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
}

.stat-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card.bg-tosca .stat-icon { color: rgba(255,255,255,0.8); }
.stat-card.bg-success .stat-icon { color: rgba(255,255,255,0.8); }
.stat-card.bg-warning .stat-icon { color: rgba(255,255,255,0.8); }
.stat-card.bg-info .stat-icon { color: rgba(255,255,255,0.8); }

.table-responsive {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table thead th {
    background: #f0fdfa;
    border-bottom: 2px solid #ccfbf1;
    font-weight: 600;
    color: #0f766e;
}

.login-card {
    max-width: 450px;
    margin: 80px auto;
    border: none;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    border-radius: 1rem;
}

.login-card .card-header {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem 1rem 0 0;
}

.login-card .card-header i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.btn-primary, .btn-tosca {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border: none;
    color: white;
}

.btn-primary:hover, .btn-tosca:hover {
    background: linear-gradient(135deg, #0f766e, #0d7368);
    color: white;
}

.btn-outline-primary {
    border-color: #0d9488;
    color: #0d9488;
}

.btn-outline-primary:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: white;
}

.form-check-input:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

.btn-outline-tosca {
    border: 1px solid #0d9488;
    color: #0d9488;
}

.btn-outline-tosca:hover {
    background: #0d9488;
    color: white;
}

.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-tosca {
    background-color: #ccfbf1;
    color: #0d7368;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: #ccfbf1;
}

.timeline li {
    position: relative;
    padding-left: 50px;
    padding-bottom: 20px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0d9488;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #0d9488;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.quota-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.quota-bar .progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    transition: width 0.3s;
}

.text-tosca { color: #0d9488 !important; }
.bg-tosca { background-color: #0d9488 !important; color: white !important; }
.badge-tosca { background-color: #0d9488; color: white; }

.btn-check:checked + .btn-outline-success,
.btn-check:checked + .btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.btn-check:checked + .btn-outline-warning,
.btn-check:checked + .btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-check:checked + .btn-outline-info,
.btn-check:checked + .btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.btn-check:checked + .btn-outline-danger,
.btn-check:checked + .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
