/* =========================================
   1. GLOBAL STYLES
   ========================================= */
body {
    background-color: #f4f6f9; /* Warna latar abu-abu muda yang lembut */
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Agar footer selalu di bawah */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Kustomisasi Scrollbar (Opsional - Webkit only) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #28a745;
}

/* =========================================
   2. NAVBAR (MENU ATAS)
   ========================================= */
.navbar-custom {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%); /* Gradasi Hijau */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin-left: 10px;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* =========================================
   3. CARD & CONTAINER (KOTAK KONTEN)
   ========================================= */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background-color: #fff;
    transition: transform 0.2s;
}

/* Efek hover pada card tertentu jika diinginkan */
.card-hover:hover {
    transform: translateY(-5px);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 15px 20px;
}

/* =========================================
   4. HALAMAN TRANSLATOR
   ========================================= */
textarea.form-control {
    background-color: #fcfcfc;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
}

textarea.form-control:focus {
    background-color: #fff;
    border-color: #28a745; /* Fokus warna hijau */
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Dropdown Arah Bahasa */
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}
.form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* =========================================
   5. HALAMAN ADMIN & TABEL
   ========================================= */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #343a40;
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 600;
}

/* Membulatkan sudut tabel header */
.table thead th:first-child { border-radius: 10px 0 0 0; }
.table thead th:last-child { border-radius: 0 10px 0 0; }

.table tbody td {
    vertical-align: middle;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.table-hover tbody tr:hover {
    background-color: #f1f8e9; /* Hijau sangat muda saat di-hover */
}

/* Tombol Aksi di Tabel */
.btn-sm {
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* =========================================
   6. PAGINATION (NOMOR HALAMAN)
   ========================================= */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #28a745;
    border: none;
    margin: 0 3px;
    border-radius: 5px !important;
    font-weight: 600;
}

.page-link:hover {
    color: #1e7e34;
    background-color: #e9ecef;
}

.page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
}

/* =========================================
   7. HALAMAN LOGIN
   ========================================= */
.login-card {
    margin-top: 80px;
    border-top: 5px solid #28a745;
}

.login-title {
    color: #28a745;
    font-weight: 700;
    margin-bottom: 20px;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    margin-top: auto; /* Footer nempel di bawah */
    background-color: #343a40;
    color: #adb5bd;
    padding: 30px 0;
    text-align: center;
    border-top: 5px solid #28a745;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   9. MODAL (POP-UP)
   ========================================= */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: none;
    padding-bottom: 20px;
}