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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    min-height: 100vh;
    color: #fff;
    padding: 0;
}

.main-header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.header-buttons a {
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    background: rgba(231, 76, 60, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-buttons a:hover {
    background: rgba(192, 57, 43, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.main-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    position: fixed;
    top: 85px; /* Ditambah jarak dari header */
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    white-space: nowrap;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0 20px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover, 
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.main-content {
    margin-top: 160px;
    padding: 30px;
    width: 100%;
}

.box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.box p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.card-dashboard {
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.05));
    backdrop-filter: blur(15px);
    color: white;
    transition: all 0.3s ease;
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

input, button, select {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input, select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    min-width: 250px;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input:focus, select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    font-weight: 500;
    cursor: pointer;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.table-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: transparent;
}

.table th {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
    padding: 12px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.bg-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

.bg-info {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
}

.login-card {
    width: 400px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 30px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 100%;
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.page-link {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: rgba(46, 204, 113, 0.2);
    color: #fff;
    border-color: rgba(46, 204, 113, 0.3);
}

.alert {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.2);
}

@media (max-width: 992px) {
    .main-header h1 {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .card-dashboard {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 20px;
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
    }
    
    .main-nav {
        top: 85px;
    }
    
    .nav-container {
        justify-content: flex-start;
        padding: 0 15px;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .main-content {
        margin-top: 150px;
        padding: 15px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    input, select {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .box {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .main-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .main-header h1 {
        font-size: 1.2rem;
    }
    
    .header-buttons a {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .main-content {
        margin-top: 170px;
        padding: 10px;
    }
    
    .box {
        padding: 15px;
    }
    
    .table th, .table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .login-card {
        padding: 20px;
    }
}

.text-center {
    text-align: center;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.modern-swal {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(15px) !important;
}

.modern-swal .swal2-title {
    color: #fff !important;
    font-weight: 600 !important;
}

.modern-swal .swal2-content {
    color: rgba(255, 255, 255, 0.8) !important;
}

.modern-swal-btn {
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.modern-swal-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

.modal-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(46, 204, 113, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1) !important;
    color: #fff !important;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.modal-btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.modal-content {
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, #1a2a6c, #2c3e50) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}