/* ============================================
   CSS FINAL - BIMBEL MAHASISWA
   Tema: Putih + Biru Laut (#008080)
   ============================================ */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   HEADER MODERN DENGAN TOMBOL
   ============================================ */

.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #008080;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: #008080;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 32px;
    background: #008080;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo span {
    color: #333;
}

.logo small {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    display: block;
    margin-top: -5px;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ----- TOMBOL UNTUK GUEST (Belum Login) ----- */
.nav .btn-nav {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Tombol Home - Outline */
.nav .btn-home {
    color: #008080;
    border-color: #008080;
    background: transparent;
}

.nav .btn-home:hover {
    background: #008080;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.nav .btn-home.active {
    background: #008080;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

/* Tombol Login - Primary Solid */
.nav .btn-login {
    background: #008080;
    color: white;
    border-color: #008080;
}

.nav .btn-login:hover {
    background: #006666;
    border-color: #006666;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 128, 128, 0.4);
}

.nav .btn-login.active {
    background: #006666;
    border-color: #006666;
    box-shadow: 0 4px 20px rgba(0, 128, 128, 0.4);
}

/* Tombol Register - Gradient */
.nav .btn-register {
    background: linear-gradient(135deg, #008080 0%, #00a0a0 100%);
    color: white;
    border-color: #008080;
}

.nav .btn-register:hover {
    background: linear-gradient(135deg, #006666 0%, #008080 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 25px rgba(0, 128, 128, 0.5);
}

.nav .btn-register.active {
    background: linear-gradient(135deg, #006666 0%, #008080 100%);
    box-shadow: 0 4px 25px rgba(0, 128, 128, 0.5);
}

.nav .btn-nav i {
    margin-right: 8px;
}

/* ----- LINK UNTUK USER YANG SUDAH LOGIN ----- */
.nav .btn-link {
    padding: 8px 16px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav .btn-link:hover {
    background: rgba(0, 128, 128, 0.1);
    color: #008080;
}

.nav .btn-link.active {
    background: #008080;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 128, 128, 0.3);
}

/* ----- USER INFO CARD ----- */
.nav .user-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: white;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.nav .user-info-card:hover {
    border-color: #008080;
    box-shadow: 0 2px 12px rgba(0, 128, 128, 0.15);
}

.user-avatar-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #008080, #00a0a0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-detail {
    line-height: 1.3;
}

.user-detail .name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-detail .role {
    font-size: 10px;
    color: #008080;
    font-weight: 600;
    background: rgba(0, 128, 128, 0.1);
    padding: 1px 10px;
    border-radius: 20px;
}

/* ----- TOMBOL LOGOUT ----- */
.nav .btn-logout-nav {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav .btn-logout-nav:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

/* ============================================
   BUTTONS UMUM
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #008080;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #008080;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #008080;
    padding-bottom: 10px;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

table th {
    background: #008080;
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px 18px;
    border-bottom: 1px solid #e0e0e0;
}

table tr:hover {
    background: #f8f9fa;
}

/* ============================================
   BADGES / STATUS
   ============================================ */

.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: #ffc107;
    color: #333;
}

.badge-active {
    background: #28a745;
    color: white;
}

.badge-waiting {
    background: #17a2b8;
    color: white;
}

.badge-rejected {
    background: #dc3545;
    color: white;
}

/* ============================================
   ALERT / NOTIFIKASI
   ============================================ */

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* ============================================
   GRID
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================
   DASHBOARD STATS
   ============================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #008080;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 28px;
    color: #008080;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
    font-size: 14px;
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* ============================================
   BANK INFO
   ============================================ */

.bank-info {
    background: #f0f8f8;
    border: 2px solid #008080;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.bank-info h3 {
    color: #008080;
    margin-bottom: 10px;
}

/* ============================================
   AUTH FORM (Login/Register)
   ============================================ */

.auth-form {
    max-width: 450px;
    margin: 50px auto;
    padding: 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    text-align: center;
    color: #008080;
    margin-bottom: 30px;
    font-size: 28px;
}

/* ============================================
   FILE INPUT
   ============================================ */

input[type="file"] {
    padding: 10px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 10px 15px;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    /* Tombol guest di mobile */
    .nav .btn-nav {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Link user di mobile */
    .nav .btn-link {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Tombol logout mobile */
    .nav .btn-logout-nav {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* User info card mobile */
    .nav .user-info-card {
        padding: 4px 10px 4px 4px;
        margin-left: 0;
    }

    .user-avatar-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .user-detail .name {
        font-size: 12px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .auth-form {
        margin: 30px 15px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .nav .btn-nav {
        padding: 5px 12px;
        font-size: 11px;
    }

    .nav .btn-link {
        padding: 4px 8px;
        font-size: 11px;
    }

    .nav .btn-logout-nav {
        padding: 5px 12px;
        font-size: 11px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .logo small {
        font-size: 10px;
    }
}