/* ========== RESET & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* ========== WARNA UTAMA ========== */
:root {
    --biru: #0d6efd;
    --merah: #dc3545;
    --kuning: #ffc107;
    --biru-gelap: #0a58ca;
    --merah-gelap: #b02a37;
    --kuning-gelap: #e6a800;
    --abu: #6c757d;
    --abu-muda: #e9ecef;
}

/* ========== HEADER & NAVBAR ========== */
header {
    background: linear-gradient(135deg, var(--biru), var(--biru-gelap));
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--kuning);
    color: var(--biru-gelap) !important;
    border-radius: 5px;
    transform: translateY(-2px);
}

/* ========== SLIDER CAROUSEL ========== */
.carousel-item img {
    height: 400px;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--biru);
    border-radius: 50%;
    padding: 20px;
}

/* ========== CARD LOWONGAN & BERITA ========== */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.card-title {
    color: var(--biru);
    font-weight: bold;
}

.card.border-primary {
    border: 2px solid var(--biru) !important;
}

.btn-primary {
    background-color: var(--biru);
    border-color: var(--biru);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--biru-gelap);
    transform: scale(1.02);
}

.btn-success {
    background-color: #198754;
}

.btn-warning {
    background-color: var(--kuning);
    border-color: var(--kuning);
    color: #000;
}

.btn-danger {
    background-color: var(--merah);
    border-color: var(--merah);
}

.btn-danger:hover {
    background-color: var(--merah-gelap);
}

/* ========== SECTION LOWONGAN ========== */
#lowongan h2, #berita h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

#lowongan h2:after, #berita h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--kuning);
    border-radius: 2px;
}

/* ========== TABEL ========== */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.table thead {
    background-color: var(--biru);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(13,110,253,0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(255,193,7,0.1);
}

/* ========== FORM ========== */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--kuning);
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
}

label {
    font-weight: 600;
    color: var(--biru-gelap);
}

/* ========== MODAL ========== */
.modal-header {
    background: linear-gradient(135deg, var(--biru), var(--biru-gelap));
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    background-color: var(--abu-muda);
    border-top: none;
}

/* ========== DASHBOARD ADMIN ========== */
.sidebar {
    background-color: #212529;
    min-height: 100vh;
}

.sidebar a {
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    transition: all 0.3s;
    border-radius: 8px;
    margin-bottom: 4px;
}

.sidebar a:hover {
    background-color: var(--kuning);
    color: #000;
}

/* Kartu statistik dashboard */
.row .col-md-3 .bg-info, 
.row .col-md-3 .bg-success,
.row .col-md-3 .bg-warning,
.row .col-md-3 .bg-danger {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.row .col-md-3 .bg-info:hover,
.row .col-md-3 .bg-success:hover,
.row .col-md-3 .bg-warning:hover,
.row .col-md-3 .bg-danger:hover {
    transform: translateY(-3px);
}

/* ========== FOOTER ========== */
footer {
    background-color: #1a1e21;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* ========== STATUS CENTANG HIJAU ========== */
.badge-status {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.bg-success-light {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }
    
    .sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ========== TOMBOL BACK TO DASHBOARD ========== */
.btn-secondary {
    background-color: var(--abu);
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ========== ALERT & NOTIFIKASI ========== */
.alert-warning {
    background-color: #fff3cd;
    border-left: 5px solid var(--kuning);
    color: #856404;
}

.alert-success {
    background-color: #d1e7dd;
    border-left: 5px solid #198754;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 5px solid var(--merah);
}

/* ========== UPLOAD PREVIEW GAMBAR ========== */
.img-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
}

/* ========== TABEL LAMARAN PELAMAR ========== */
.table td.text-center i {
    font-size: 1.3rem;
}

/* ========== SLIDER DASHBOARD ADMIN ========== */
.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}