/* ===== GENERAL STYLES ===== */
body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ===== LOGO STYLES ===== */
.hero-logo-wrapper img {
    transition: all 0.3s ease;
}

.hero-logo-wrapper img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.7)) drop-shadow(0 6px 12px rgba(0,0,0,0.4)) !important;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)) !important;
}

/* Login Logo Styles */
.login-logo-img {
    max-width: 60px !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)) drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
    animation: glowPulse 2s ease-in-out infinite;
}

.login-logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.8)) drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)) drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.7)) drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    }
}

.login-header .login-logo {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    background-color: #2c3e50 !important;
}

.sidebar:hover {
    width: 260px;
}

.sidebar:hover ~ .main-content {
    margin-left: 260px;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 10px;
}

.sidebar .logo-full {
    display: none;
    white-space: nowrap;
    font-size: 1.3rem;
}

.sidebar .logo-mini {
    display: block;
    font-size: 1.2rem;
}

.sidebar:hover .logo-full {
    display: block;
}

.sidebar:hover .logo-mini {
    display: none;
}

.sidebar .sidebar-user {
    display: none;
    margin-top: 10px;
}

.sidebar:hover .sidebar-user {
    display: block;
}

.sidebar .nav-link {
    padding: 12px 15px;
    margin: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

.sidebar .nav-link .nav-text {
    opacity: 0;
    margin-left: 12px;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.sidebar:hover .nav-link .nav-text {
    opacity: 1;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: #3498db;
}

.sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

.sidebar:not(:hover) .nav-link:hover::before {
    content: attr(title);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}

.nav-link.ps-4 {
    font-size: 0.9rem;
    padding-left: 2.5rem !important;
}

.nav-link.ps-4:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.ps-4.active {
    background-color: rgba(13, 110, 253, 0.5) !important;
    border-left: 3px solid #0d6efd;
}

/* ===== SIDEBAR SUB MENU STYLES (DIPERBAIKI - VERTIKAL) ===== */
/* Parent menu dengan sub menu */
.nav-item.has-submenu {
    position: relative;
}

/* Container sub menu - VERTIKAL (KE BAWAH) */
.nav-submenu {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    display: none;
    padding: 5px 0 5px 30px;
    animation: slideDown 0.3s ease;
    border: none;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Animasi slideDown */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Hover parent untuk show submenu */
.sidebar .nav-item.has-submenu:hover .nav-submenu {
    display: block;
}

/* Sub menu link styles */
.sidebar .nav-submenu .nav-link {
    padding: 10px 15px !important;
    margin: 2px 5px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: white !important;
    font-size: 0.85rem;
}

/* Sub menu hover effect */
.sidebar .nav-submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

/* Sub menu active state */
.sidebar .nav-submenu .nav-link.active {
    background-color: #3498db;
}

/* Parent menu indicator */
.sidebar .nav-item.has-submenu > .nav-link::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    margin-left: auto;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar:hover .nav-item.has-submenu > .nav-link::after {
    opacity: 1;
}

/* Rotate arrow saat hover */
.sidebar:hover .nav-item.has-submenu:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* ===== SIDEBAR SUB MENU STYLES (DUPLIKAT) ===== */
.nav-item.has-submenu {
    position: relative;
}

.nav-submenu {
    display: none;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    padding: 5px 0 5px 30px;
    border: none;
    animation: slideDown 0.3s ease;
    margin-top: 5px;
    margin-bottom: 5px;
}

.nav-submenu::before {
    display: none;
}

/* Sub menu items */
.nav-submenu .nav-item {
    margin: 0;
}

.nav-submenu .nav-link {
    padding: 10px 15px !important;
    margin: 2px 5px !important;
    border-radius: 6px;
    color: white !important;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.nav-submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.nav-submenu .nav-link.active {
    background-color: #3498db;
}

.nav-submenu .nav-link i {
    font-size: 1rem;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Hover effect untuk show submenu */
.sidebar.hover .nav-item.has-submenu:hover .nav-submenu {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar.show .nav-submenu {
        position: relative;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        padding-left: 30px;
        margin: 5px 0;
        border-radius: 0;
        border: none;
    }
    
    .sidebar.show .nav-submenu::before {
        display: none;
    }
    
    .sidebar.show .nav-submenu .nav-link {
        padding: 8px 15px !important;
        margin: 2px 0 !important;
    }
}

/* Arrow untuk sub menu */
.nav-submenu::before {
    display: none;
}

/* Tooltip untuk sub menu parent saat collapsed */
.sidebar:not(:hover) .nav-item.has-submenu .nav-link:hover::before {
    content: attr(title);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .sidebar.show .nav-item.has-submenu > .nav-link::after {
        opacity: 1;
        content: '\f054';
    }
    
    .sidebar.show .nav-submenu {
        position: relative;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        padding-left: 30px;
        margin: 5px 0;
        border-radius: 0;
        border: none;
        display: none;
    }
    
    .sidebar.show .nav-item.has-submenu:hover .nav-submenu,
    .sidebar.show .nav-item.has-submenu.active .nav-submenu {
        display: block;
    }
    
    .sidebar.show .nav-submenu .nav-link {
        padding: 8px 15px !important;
        margin: 2px 0 !important;
    }
    
    .sidebar.show .nav-submenu::before {
        display: none;
    }
}

/* ===== SIDEBAR DOSEN (Dark Blue) ===== */
.sidebar-dosen {
    background: linear-gradient(180deg, #1a3a52 0%, #0d2137 100%) !important;
}

.sidebar-dosen .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-dosen .nav-link.active {
    background-color: #2980b9;
}

.sidebar-dosen .nav-link.active::after {
    background: #f39c12;
}

.sidebar-dosen::-webkit-scrollbar-track {
    background: #1a3a52;
}

.sidebar-dosen::-webkit-scrollbar-thumb {
    background: #2c5282;
}

.sidebar-dosen::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}

/* Sub menu untuk dosen */
.sidebar-dosen .nav-submenu {
    background: rgba(13, 33, 55, 0.5);
    border: none;
}

.sidebar-dosen .nav-submenu::before {
    display: none;
}

.sidebar-dosen .nav-submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-dosen .nav-submenu .nav-link.active {
    background-color: #2980b9;
}

/* ===== SIDEBAR REVIEWER (Gold Theme) ===== */
.sidebar-reviewer {
    background: linear-gradient(180deg, #b8860b 0%, #8b6914 100%) !important;
    box-shadow: 2px 0 15px rgba(184, 134, 11, 0.2);
}

.sidebar-reviewer .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-reviewer .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-reviewer .nav-link.active::after {
    background: #fff;
}

.sidebar-reviewer::-webkit-scrollbar-track {
    background: #b8860b;
}

.sidebar-reviewer::-webkit-scrollbar-thumb {
    background: #8b6914;
}

.sidebar-reviewer::-webkit-scrollbar-thumb:hover {
    background: #daa520;
}

/* Sub menu untuk reviewer */
.sidebar-reviewer .nav-submenu {
    background: rgba(139, 105, 20, 0.5);
    border: none;
}

.sidebar-reviewer .nav-submenu::before {
    display: none;
}

.sidebar-reviewer .nav-submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-reviewer .nav-submenu .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== SIDEBAR OPERATOR (Cyan/Info Theme) ===== */
.sidebar-operator {
    background: linear-gradient(180deg, #17a2b8 0%, #117a8b 100%) !important;
}

.sidebar-operator .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-operator .nav-link.active {
    background-color: #138496;
}

.sidebar-operator .nav-link.active::after {
    background: #fff;
}

.sidebar-operator::-webkit-scrollbar-track {
    background: #17a2b8;
}

.sidebar-operator::-webkit-scrollbar-thumb {
    background: #117a8b;
}

.sidebar-operator::-webkit-scrollbar-thumb:hover {
    background: #0d6efd;
}

/* Sub menu untuk operator */
.sidebar-operator .nav-submenu {
    background: rgba(17, 122, 139, 0.5);
    border: none;
}

.sidebar-operator .nav-submenu::before {
    display: none;
}

.sidebar-operator .nav-submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-operator .nav-submenu .nav-link.active {
    background-color: #138496;
}

/* ===== SIDEBAR ADMIN (Dark Theme) ===== */
.sidebar-admin {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%) !important;
}

.sidebar-admin .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-admin .nav-link.active {
    background-color: #e74c3c;
}

.sidebar-admin .nav-link.active::after {
    background: #fff;
}

.sidebar-admin::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar-admin::-webkit-scrollbar-thumb {
    background: #34495e;
}

.sidebar-admin::-webkit-scrollbar-thumb:hover {
    background: #e74c3c;
}

/* Sub menu untuk admin */
.sidebar-admin .nav-submenu {
    background: rgba(26, 37, 47, 0.5);
    border: none;
}

.sidebar-admin .nav-submenu::before {
    display: none;
}

.sidebar-admin .nav-submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-admin .nav-submenu .nav-link.active {
    background-color: #e74c3c;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 70px;
    transition: margin-left 0.3s ease;
    padding: 20px;
    min-height: 100vh;
}

/* ===== NAVBAR STYLES ===== */
.navbar-brand h3 {
    margin-bottom: 0;
    font-weight: bold;
}

.navbar-brand small {
    font-size: 0.8rem;
}

/* ===== NAVBAR LANDING PAGE ENHANCED ===== */
.navbar.bg-dark {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.navbar.bg-dark .navbar-brand h3 {
    background: linear-gradient(135deg, #3498db, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.bg-dark .navbar-brand small {
    color: rgba(255, 255, 255, 0.7);
}

.navbar.bg-dark .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    position: relative;
    padding: 10px 15px !important;
}

.navbar.bg-dark .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #f39c12);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar.bg-dark .nav-link:hover::after {
    width: 80%;
}

.navbar.bg-dark .nav-link:hover {
    color: #fff !important;
}

.navbar.bg-dark .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.navbar.bg-dark .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* ===== NAVBAR DROPDOWN STYLES ===== */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 0;
}

.navbar .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
}

.navbar .dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
}

.navbar .nav-link:hover {
    color: #3498db !important;
}

.dropdown-header {
    font-weight: 600;
    color: #2c3e50;
    padding: 10px 20px;
}

@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        animation: dropdownFadeIn 0.3s ease;
    }
    
    .navbar .nav-item.dropdown .dropdown-menu {
        display: none;
    }
    
    .navbar .nav-item.dropdown:hover > .nav-link {
        color: #3498db !important;
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CARD STYLES ===== */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: 600;
    background-color: #f8f9fa;
}

.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info,
.card.bg-danger {
    color: white;
    border: none;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover,
.card.bg-danger:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== CUSTOM COLORS ===== */
.bg-primary { background-color: #2c3e50 !important; }
.bg-success { background-color: #27ae60 !important; }
.bg-warning { background-color: #f39c12 !important; }
.bg-info { background-color: #3498db !important; }
.bg-danger { background-color: #e74c3c !important; }

/* ===== TABLE STYLES ===== */
.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== BADGE STYLES ===== */
.badge {
    font-size: 0.75em;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* ===== LIST GROUP STYLES ===== */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding-left: 16px;
    transform: translateY(-2px);
}

/* ===== MODAL STYLES ===== */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* ===== FORM STYLES ===== */
.form-control:focus,
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* ===== ALERT STYLES ===== */
.alert {
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== LANDING PAGE STYLES ===== */
.landing-page {
    overflow-x: hidden;
}

.hero-section {
    background: linear-gradient(135deg, #1a3a52 0%, #2980b9 50%, #3498db 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Animated Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Fade In Up Animation */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stats-card .icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.feature-card {
    border: none;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-card .card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
}

.feature-card .card-body {
    padding: 20px;
}

.feature-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.feature-card ul li:last-child {
    border-bottom: none;
}

.feature-card ul li i {
    margin-right: 10px;
    color: #3498db;
}

.cta-section {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: white;
    padding: 60px 0;
    border-radius: 20px;
}

.btn-login {
    padding: 15px 50px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.announcement-item {
    padding: 12px 15px;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* ===== FOOTER ENHANCED ===== */
.footer {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    color: white;
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer > .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer .social-links {
    margin-bottom: 15px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .social-links a:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.footer .social-links a:last-child {
    margin-right: 0;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer .copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer .copyright a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .copyright a:hover {
    color: #f39c12;
}

/* Footer top border gradient */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c, #9b59b6);
}

/* Footer columns */
.footer-col {
    margin-bottom: 20px;
}

.footer-col h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #f39c12);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.footer-col ul li a i {
    margin-right: 8px;
    width: 15px;
}

/* Contact info in footer */
.footer-contact {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact p i {
    margin-right: 10px;
    margin-top: 4px;
    color: #3498db;
}

/* About Section */
.about-section {
    background: #fff;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.about-icon-wrapper {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.3);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.about-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #1a3a52, #2980b9, #27ae60, #8e44ad, #e74c3c, #f39c12);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #1a3a52 0%, #2980b9 100%);
    padding: 30px 20px;
    color: white;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.login-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.4;
}

.login-body {
    padding: 30px;
}

.login-body .form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.login-body .input-group-text {
    background: #f8f9fa;
    border-right: none;
    color: #6c757d;
}

.login-body .form-control,
.login-body .form-select {
    border-left: none;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.login-body .form-control:focus,
.login-body .form-select:focus {
    box-shadow: none;
    border-color: #3498db;
}

.login-body .input-group:focus-within .input-group-text {
    border-color: #3498db;
    color: #3498db;
}

.login-body .input-group:focus-within .form-control,
.login-body .input-group:focus-within .form-select {
    border-color: #3498db;
}

.btn-login-primary {
    background: linear-gradient(135deg, #1a3a52 0%, #2980b9 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-login-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1a3a52 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 58, 82, 0.3);
}

.btn-login-secondary {
    background: transparent;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-login-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-2px);
}

#togglePassword {
    border-left: none;
    background: #f8f9fa;
    border-color: #dee2e6;
}

#togglePassword:hover {
    background: #e9ecef;
    color: #3498db;
}

.login-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
}

.login-footer p {
    color: #6c757d;
    font-size: 0.8rem;
}

.login-body .alert {
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 12px 15px;
}

.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        width: 260px;
        transform: translateX(0);
    }
    
    .sidebar.show .nav-link .nav-text {
        opacity: 1;
    }
    
    .sidebar.show .logo-full {
        display: block;
    }
    
    .sidebar.show .logo-mini {
        display: none;
    }
    
    .sidebar.show .sidebar-user {
        display: block;
    }
    
    .sidebar:hover ~ .main-content {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 60px;
    }
    
    .navbar-brand small {
        display: none;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .about-icon-wrapper {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
    
    .about-image {
        height: 200px;
    }
    
    .login-card {
        margin: 15px;
        border-radius: 15px;
    }
    
    .login-header {
        padding: 25px 15px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-body {
        padding: 20px;
    }
    
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-col {
        margin-bottom: 25px;
    }
}

/* Mobile menu toggle button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #3498db;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .btn,
    .modal,
    .alert,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .table {
        font-size: 12px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ===== PENGUMUMAN STYLES ===== */
.pengumuman-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.pengumuman-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pengumuman-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 15px;
}

.pengumuman-card .card-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin: 0;
}

.pengumuman-card .card-body {
    padding: 15px;
}

.pengumuman-card .card-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
}

.pengumuman-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 10px 15px;
    font-size: 0.85rem;
}

.pengumuman-card .btn-group {
    display: flex;
    gap: 5px;
}

.pengumuman-card .btn-group .btn {
    padding: 4px 8px;
    font-size: 0.875rem;
    border-radius: 4px;
}

.btn-edit-pengumuman {
    transition: all 0.3s ease;
}

.btn-edit-pengumuman:hover {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
    transform: scale(1.05);
}

.btn-delete-pengumuman {
    transition: all 0.3s ease;
}

.btn-delete-pengumuman:hover {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    transform: scale(1.05);
}

#editPengumumanModal .modal-header,
#deletePengumumanModal .modal-header,
#addPengumumanModal .modal-header {
    border-bottom: none;
}

#editPengumumanModal .modal-body,
#deletePengumumanModal .modal-body,
#addPengumumanModal .modal-body {
    padding: 25px;
}

#editPengumumanModal textarea,
#addPengumumanModal textarea {
    min-height: 150px;
    resize: vertical;
}

#deletePengumumanModal .alert {
    border-radius: 8px;
    margin-bottom: 15px;
}

.pengumuman-card + .text-center {
    padding: 40px 20px;
}

.pengumuman-card + .text-center i {
    color: #adb5bd;
}

@media (max-width: 768px) {
    .pengumuman-card .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .pengumuman-card .card-title {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .pengumuman-card .btn-group {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== ADDITIONAL COMPONENTS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

.pagination .page-link {
    border-radius: 5px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    transform: translateY(-2px);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-indicator.online {
    background-color: #27ae60;
}

.status-indicator.offline {
    background-color: #e74c3c;
}

.status-indicator.away {
    background-color: #f39c12;
}

.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 30px;
    height: 30px;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gradient-text {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-wrapper {
    padding: 0;
}

a, button, .btn, .nav-link, .card, .list-group-item {
    transition: all 0.3s ease;
}

a:focus, button:focus, .btn:focus, .form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}