/* 
 * Repositori Kharisma - CSS Design System
 * Menyediakan gaya premium dengan variabel HSL, Glassmorphism, 
 * Micro-animations, dan tata letak responsif.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Palet Warna HSL */
    --primary: hsl(224, 76%, 48%);
    --primary-hover: hsl(224, 76%, 40%);
    --primary-light: hsl(224, 76%, 95%);
    --accent: hsl(142, 72%, 29%);
    --accent-hover: hsl(142, 72%, 22%);
    --accent-light: hsl(142, 72%, 95%);
    --danger: hsl(0, 72%, 51%);
    --danger-hover: hsl(0, 72%, 40%);
    --danger-light: hsl(0, 72%, 96%);
    --warning: hsl(38, 92%, 50%);
    --warning-light: hsl(38, 92%, 95%);
    
    /* Warna Netral */
    --bg-main: hsl(210, 40%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --border-color: hsl(210, 20%, 90%);
    --text-primary: hsl(222, 47%, 11%);
    --text-secondary: hsl(215, 16%, 47%);
    --text-muted: hsl(215, 16%, 70%);
    
    /* Efek & Ukuran */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-premium: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
}

/* Tombol Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
}

.btn-icon {
    padding: 0.6rem;
    border-radius: 50%;
}

.btn:active {
    transform: translateY(0);
}

/* Layout Konten Utama */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
    overflow-y: auto;
    height: 100%;
}

.content-area {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Menu Sidebar */
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link i {
    font-size: 1.1rem;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

/* User Profile Badge di Sidebar */
.user-profile-badge {
    margin-top: auto;
    padding: 1rem;
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.user-info-text {
    overflow: hidden;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Kartu & Container Interaktif (Glassmorphism) */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-premium {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-premium);
}

/* Halaman Dashboard */
.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.stat-icon.success { background-color: var(--accent-light); color: var(--accent); }
.stat-icon.danger { background-color: var(--danger-light); color: var(--danger); }
.stat-icon.warning { background-color: var(--warning-light); color: var(--warning); }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Grafik Dashboard */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.chart-card {
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Form Unggah */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    transition: var(--transition);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.file-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: var(--bg-main);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.file-upload-zone i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Tabel Data */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    text-align: left;
}

.table th {
    background-color: var(--bg-main);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: var(--bg-main);
}

/* Badge Status */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending { background-color: var(--warning-light); color: var(--warning); }
.badge-approved { background-color: var(--accent-light); color: var(--accent); }
.badge-rejected { background-color: var(--danger-light); color: var(--danger); }

.badge-public { background-color: var(--primary-light); color: var(--primary); }
.badge-private { background-color: var(--text-secondary); color: white; background: var(--text-secondary); }

/* Portal Mahasiswa: List Unggahan */
.thesis-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thesis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.thesis-item:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.thesis-info {
    max-width: 70%;
}

.thesis-title-list {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.thesis-meta-list {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1.5rem;
}

.thesis-actions-list {
    display: flex;
    gap: 0.75rem;
}

/* Modal Keamanan / PDF Viewer */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 2.5rem 1rem;
    animation: fadeIn 0.2s ease-out;
}

#pdf-modal {
    z-index: 1100;
}

.modal.active {
    display: flex;
}

.modal-content.modal-lg {
    max-width: 950px;
    width: 95%;
}

@media (max-width: 992px) {
    .modal-content.modal-lg {
        max-width: 100%;
        width: 98%;
        max-height: none;
    }
    .modal-content {
        max-height: none;
    }
}

/* Badge Revisi */
.badge-needs-revision {
    background-color: var(--warning-light);
    color: var(--warning);
}

/* Grid Persetujuan Admin Responsif */
.approval-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.approval-left-col {
    padding-right: 0.5rem;
}

.approval-right-col {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

@media (max-width: 850px) {
    .approval-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .approval-right-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
    }
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* PDF Preview Frame */
.pdf-viewer-frame {
    background-color: #525659;
    border-radius: var(--radius-md);
    padding: 2rem;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    min-height: 350px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid #3c4043;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Tampilan Kunci / Terproteksi */
.locked-pdf-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    border: 2px dashed var(--danger);
    color: var(--text-primary);
}

.locked-pdf-overlay i {
    font-size: 4rem;
    color: var(--danger);
    margin-bottom: 1.5rem;
    animation: pulse 2rem infinite;
}

/* Premium Login Card & Floating Orbs UI */
.login-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 2.5rem;
    background: radial-gradient(circle at 50% 50%, #0a081a 0%, #020205 100%);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.32;
    z-index: 1;
    animation: floatOrbs 18s infinite alternate ease-in-out;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: #4f46e5; /* Indigo */
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: #0ea5e9; /* Sky Blue */
    bottom: -100px;
    right: -50px;
    animation-delay: -4s;
}

.orb-3 {
    width: 280px;
    height: 280px;
    background: #c084fc; /* Purple */
    top: 25%;
    left: 75%;
    animation-delay: -8s;
}

@keyframes floatOrbs {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -60px) scale(1.15); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
    z-index: 2;
    color: white;
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition) !important;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4) !important;
}

.login-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.login-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-circle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.65rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.login-card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Halaman Publik Browse */
.public-hero {
    background: radial-gradient(circle at top right, var(--primary-light) 0%, rgba(255, 255, 255, 0.95) 75%), linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    padding: 4.5rem 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.public-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.public-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.public-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.search-box-container {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 1.05rem;
}

.thesis-grid-public {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.thesis-card-public {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.thesis-card-header {
    margin-bottom: 1rem;
}

.thesis-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thesis-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.thesis-card-abstract {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.thesis-card-footer {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}

.toast {
    background-color: white;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 300px;
    max-width: 450px;
}

.toast-success { border-left-color: var(--accent); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Custom Chart Bars */
.chart-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.chart-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-bar-name {
    width: 120px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.chart-bar-line-container {
    flex: 1;
    height: 12px;
    background-color: var(--bg-main);
    border-radius: 6px;
    overflow: hidden;
}

.chart-bar-line {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 6px;
    width: 0%;
    transition: width 1s ease-out;
}

.chart-bar-value {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsivitas */
@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .login-split-container {
        flex-direction: column;
    }
    .login-left-banner {
        padding: 3rem 2rem;
    }
    .login-left-banner img {
        display: none;
    }
    .login-right-form {
        width: 100%;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 1rem !important;
        background: white;
    }
    .sidebar-menu-wrapper {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .sidebar-menu-wrapper > div {
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .sidebar-title {
        margin-bottom: 0 !important;
        font-size: 0.85rem !important;
        font-weight: 700;
    }
    .sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem;
        margin-top: 0 !important;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        width: auto;
        list-style: none;
    }
    .sidebar-menu li {
        flex-shrink: 0;
    }
    .sidebar-link {
        padding: 0.4rem 0.8rem !important;
        border-radius: 20px !important;
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
    }
    .content-area {
        padding: 1rem;
    }
    .navbar {
        padding: 1rem 1.5rem;
        position: relative;
    }
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.35rem;
        color: var(--primary);
        cursor: pointer;
        padding: 0.4rem;
        order: 1;
    }
    .nav-actions {
        order: 2;
    }
    .nav-menu {
        display: none;
        width: 100%;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        gap: 0.75rem;
        z-index: 99;
    }
    .nav-menu.active li {
        width: 100%;
        text-align: left;
    }
    .nav-menu.active .nav-link {
        display: block;
        width: 100%;
        padding: 0.6rem 1rem;
    }
}

/* ========================================================
   SLIDESHOW / CAROUSEL
   ======================================================== */
.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 400;
    height: auto;
    max-height: 420px;
    min-height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background-color: hsl(222, 47%, 11%);
}
@media (max-width: 768px) {
    .slideshow-container {
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 480px) {
    .slideshow-container {
        margin-bottom: 1rem;
    }
}
.slide-item {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.slide-item.active {
    display: block;
    animation: fadeEffect 0.8s ease-in-out;
}
.slide-blur-bg {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.5);
    opacity: 0.8;
    z-index: 1;
}
.slide-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}
.slide-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 380px;
    max-width: calc(100% - 40px);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1.25rem 1.75rem;
    pointer-events: none;
}
.slide-caption h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.slide-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.slideshow-dots {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.slide-dot.active {
    background-color: white;
    transform: scale(1.3);
    width: 18px;
    border-radius: 5px;
}
@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* ========================================================
   PAPAN BERITA / ANNOUNCEMENTS
   ======================================================== */
.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.news-card-image-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-body {
    padding: 1.25rem;
    flex: 1;
}
.news-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.tag-photo { background-color: var(--primary-light); color: var(--primary); }
.tag-link { background-color: var(--accent-light); color: var(--accent); }
.tag-text { background-color: var(--warning-light); color: var(--warning); }

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.news-card-content {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================================
   LOGO & MEDIA CETAK (SURAT RAPIH)
   ======================================================== */
.logo-icon svg {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* GRADIENT TEXT ANIMATION FOR HOMEPAGE TITLE */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-title {
    background: linear-gradient(270deg, var(--primary), var(--accent), #2563eb, #10b981);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease infinite;
}

/* MARQUEE RUNNING TEXT */
.marquee-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.marquee-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    z-index: 2;
}
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    z-index: 1;
}
.marquee-text {
    position: absolute;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* BACKUP CARDS & CAPACITY INDICATORS */
.backup-card {
    transition: all 0.2s ease-in-out;
}
.backup-card:hover {
    background-color: var(--bg-hover) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media print {
    body {
        background-color: white !important;
        color: black !important;
        font-family: "Times New Roman", Times, serif !important;
    }
    #app, .navbar, .sidebar, .toast-container, .modal-header, .modal-footer, #view-container > *:not(#pdf-modal) {
        display: none !important;
    }
    #pdf-modal {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    .modal {
        position: static !important;
        display: block !important;
        background: none !important;
    }
    .modal-content {
        position: static !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    .modal-body {
        padding: 0 !important;
    }
    .pdf-viewer-frame {
        background-color: white !important;
        color: black !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        font-family: "Times New Roman", Times, serif !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
        white-space: pre-wrap !important;
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

/* Custom styles for Browse Folder Cards & Academic Item list */
.browse-folder-card {
    transition: var(--transition) !important;
    text-decoration: none;
}
.browse-folder-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}
.browse-folder-card div i {
    transition: var(--transition);
}
.browse-folder-card:hover div i {
    transform: scale(1.1);
}

.academic-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}
.academic-item:last-child {
    border-bottom: none;
}
.academic-title:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

/* Search Form Control */
.search-form-card .form-control {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
}
.search-form-card .form-control:focus {
    background-color: white;
    border-color: var(--primary);
}

/* Responsive Grid for About & Help Showcase pages */
@media (max-width: 992px) {
    .about-grid-layout, .help-grid-layout {
        grid-template-columns: 1fr !important;
    }
    .about-grid-layout div:last-child, .help-grid-layout div:last-child {
        position: static !important;
        margin-top: 1.5rem;
    }
}

/* Hover transitions for indexing site link anchors */
.index-link {
    transition: transform 0.2s, opacity 0.2s, color 0.2s;
    opacity: 0.85;
}
.index-link:hover {
    transform: translateY(-2px);
    opacity: 1;
    text-decoration: underline !important;
}


