/* --- Gaya Global & Font --- */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #f4f7f6;
    --card-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: #333;
}

/* --- Navbar & Sidebar --- */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background: linear-gradient(90deg, var(--dark-color) 0%, #343a40 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* --- Card & Konten --- */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* --- Tabel --- */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* --- Tombol --- */
.btn {
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* --- Animasi --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Form --- */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* --- Footer --- */
footer {
    margin-top: auto;
}

/* ==========================================================================
   Halaman Login Khusus
   ========================================================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    font-family: 'Poppins', sans-serif;
}

/* --- Bagian Branding (Kiri) --- */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.brand-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
}

.login-branding h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brand-description {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.brand-institution {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* --- Bagian Form (Kanan) --- */
.login-form-wrapper {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.6s ease-out;
}

.login-card .card-title {
    font-weight: 600;
    color: var(--dark-color);
}

/* --- Form Elements --- */
.login-form .form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.login-form .input-group-text {
    background-color: #fff;
    border-right: none;
    color: #6c757d;
}

.login-form .form-control {
    border-left: none;
    padding-left: 0.5rem;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.login-form .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* --- Tombol Login --- */
.btn-login {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.4);
    color: white;
}

/* --- Animasi --- */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Responsivitas untuk Tablet & Smartphone --- */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-branding {
        flex: none;
        min-height: 40vh;
        padding: 1.5rem;
    }

    .brand-logo {
        max-width: 120px;
    }

    .login-branding h1 {
        font-size: 2rem;
    }
    
    .brand-description {
        font-size: 1rem;
    }

    .login-form-wrapper {
        flex: 1;
    }
}

/* assets/css/style.css */

/* ... CSS yang sudah ada ... */

/* --- Styling untuk Halaman Jadwal Retensi Baru --- */

/* Kartu Dokumen */
.document-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    overflow: hidden;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.document-card .card-body {
    padding: 1.5rem;
}

.document-card .document-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.document-card .document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.document-card .document-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.document-card .card-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

/* Panel Pratinjau */
.preview-panel {
    position: sticky;
    top: 20px; /* Agar panel tetap terlihat saat scroll */
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h5 {
    margin: 0;
    font-weight: 600;
}

/* Container untuk Mode Layar Penuh */
#fullscreen-preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none; /* Disembunyikan secara default */
    flex-direction: column;
}

#fullscreen-preview-container iframe {
    flex-grow: 1;
    width: 100%;
    border: none;
}

.fullscreen-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.fullscreen-controls .btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
}

.fullscreen-controls .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Responsif untuk Mobile */
@media (max-width: 991.98px) {
    .preview-panel {
        display: none; /* Sembunyikan panel pratinjau di tablet dan mobile */
    }
    .document-card .document-icon {
        font-size: 2.5rem;
    }
}