/* ============================================
   ROOT VARIABLES & RESET - PALET ANDA
   ============================================ */
:root {
    --primary: rgb(18, 48, 174);
    --primary-dark: rgb(12, 35, 130);
    --secondary: rgb(108, 72, 197);
    --accent: rgb(198, 143, 230);
    --light: rgb(255, 247, 247);
    --white: rgb(255, 247, 247);
    --dark: rgb(18, 48, 174);
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --gradient-1: linear-gradient(135deg, rgb(18, 48, 174) 0%, rgb(108, 72, 197) 50%, rgb(198, 143, 230) 100%);
    --gradient-2: linear-gradient(135deg, rgb(18, 48, 174) 0%, rgb(108, 72, 197) 100%);
    --gradient-3: linear-gradient(135deg, rgb(108, 72, 197) 0%, rgb(198, 143, 230) 100%);
    --shadow: 0 10px 40px rgba(18, 48, 174, 0.2);
    --shadow-lg: 0 20px 60px rgba(108, 72, 197, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(255, 247, 247);
    color: rgb(18, 48, 174);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgb(18, 48, 174) 0%, rgb(108, 72, 197) 50%, rgb(198, 143, 230) 100%);
    overflow: hidden;
}

.bg-animated::before,
.bg-animated::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.bg-animated::before {
    width: 600px;
    height: 600px;
    background: rgba(198, 143, 230, 0.15);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-animated::after {
    width: 400px;
    height: 400px;
    background: rgba(108, 72, 197, 0.1);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 247, 247, 0.05);
    animation: float 25s infinite ease-in-out;
}

.bg-circle:nth-child(1) {
    width: 300px; height: 300px;
    top: 20%; left: 10%;
    animation-delay: -5s;
}

.bg-circle:nth-child(2) {
    width: 200px; height: 200px;
    top: 60%; right: 15%;
    animation-delay: -15s;
}

.bg-circle:nth-child(3) {
    width: 150px; height: 150px;
    bottom: 20%; left: 30%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(50px, -50px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-30px, 60px) rotate(180deg) scale(0.9); }
    75% { transform: translate(40px, 30px) rotate(270deg) scale(1.05); }
}

/* ============================================
   NAVBAR - Glassmorphism Premium
   ============================================ */
.navbar {
    background: rgba(255, 247, 247, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 247, 247, 0.15);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(18, 48, 174, 0.1);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: rgb(255, 247, 247);
}

.navbar .logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(18, 48, 174, 0.3);
    transition: var(--transition);
}

.navbar .logo-icon:hover {
    transform: rotate(10deg) scale(1.05);
}

.navbar .logo-text h1 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgb(255, 247, 247), rgb(198, 143, 230));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .logo-text span {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 300;
    color: rgb(255, 247, 247);
}

.navbar .nav-links {
    display: flex;
    gap: 1rem;
}

.navbar .nav-links a {
    color: rgba(255, 247, 247, 0.8);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 247, 247, 0.08);
    background: rgba(255, 247, 247, 0.05);
}

.navbar .nav-links a:hover {
    background: rgba(198, 143, 230, 0.2);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 72, 197, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 247, 247, 0.12);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    color: rgb(198, 143, 230);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(198, 143, 230, 0.3);
    animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: rgb(198, 143, 230);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h2 {
    font-size: 2.8rem;
    color: rgb(255, 247, 247);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 2px 30px rgba(18, 48, 174, 0.3);
}

.hero h2 .highlight {
    background: linear-gradient(135deg, rgb(255, 247, 247), rgb(198, 143, 230));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    color: rgba(255, 247, 247, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ============================================
   SEARCH CARD - Premium Glassmorphism
   ============================================ */
.search-card {
    background: rgba(255, 247, 247, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 247, 247, 0.15);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(18, 48, 174, 0.2);
    animation: fadeInUp 0.8s ease 0.6s both;
    transition: var(--transition);
}

.search-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 48px rgba(108, 72, 197, 0.3);
}

.search-card h3 {
    color: rgb(255, 247, 247);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.search-card p {
    color: rgba(255, 247, 247, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 247, 247, 0.4);
    font-size: 1.1rem;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid rgba(255, 247, 247, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 247, 247, 0.06);
    color: rgb(255, 247, 247);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 247, 247, 0.4);
}

.input-group input:focus {
    border-color: rgb(198, 143, 230);
    background: rgba(255, 247, 247, 0.1);
    box-shadow: 0 0 0 4px rgba(198, 143, 230, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(108, 72, 197) 0%, rgb(198, 143, 230) 100%);
    color: rgb(255, 247, 247);
    box-shadow: 0 4px 20px rgba(108, 72, 197, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 247, 247, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 72, 197, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 247, 247, 0.3);
    color: rgb(255, 247, 247);
}

.btn-outline:hover {
    background: rgba(255, 247, 247, 0.1);
    border-color: rgba(255, 247, 247, 0.5);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: auto;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

/* ============================================
   COUNTDOWN CARD
   ============================================ */
.countdown-card {
    background: rgba(255, 247, 247, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 247, 247, 0.15);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(18, 48, 174, 0.2);
    animation: fadeInUp 0.8s ease 0.6s both;
    transition: var(--transition);
}

.countdown-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(108, 72, 197, 0.3);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.time-block {
    background: rgba(255, 247, 247, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    min-width: 80px;
    border: 1px solid rgba(255, 247, 247, 0.1);
    transition: var(--transition);
}

.time-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(108, 72, 197, 0.3);
}

.time-block .digit {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, rgb(255, 247, 247), rgb(198, 143, 230));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.time-block .unit {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 4px;
    color: rgb(255, 247, 247);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    background: rgba(255, 247, 247, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 247, 247, 0.1);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 247, 247, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 20px rgba(108, 72, 197, 0.2);
}

.stat-item .number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgb(255, 247, 247), rgb(198, 143, 230));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-item .label {
    font-size: 0.75rem;
    color: rgba(255, 247, 247, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(18, 48, 174, 0.3);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    text-align: center;
    color: rgba(255, 247, 247, 0.6);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 247, 247, 0.05);
}

.footer a {
    color: rgb(198, 143, 230);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: rgb(255, 247, 247);
}

/* ============================================
   RESULT PAGE
   ============================================ */
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.result-card {
    background: rgba(255, 247, 247, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(18, 48, 174, 0.3);
    max-width: 650px;
    width: 100%;
    overflow: hidden;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.result-header {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.result-header.lulus {
    background: linear-gradient(135deg, rgb(18, 48, 174) 0%, rgb(108, 72, 197) 50%, rgb(198, 143, 230) 100%);
}

.result-header.tidak-lulus {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.result-header .status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 247, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    animation: bounceIn 0.6s ease 0.3s both;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-header h2 {
    color: rgb(255, 247, 247);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.result-header p {
    color: rgba(255, 247, 247, 0.8);
    font-size: 0.95rem;
}

.result-body {
    padding: 2rem;
}

.student-info {
    display: grid;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(18, 48, 174, 0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-left: 3px solid rgb(108, 72, 197);
}

.info-row:hover {
    background: rgba(18, 48, 174, 0.08);
    transform: translateX(5px);
}

.info-row .label {
    color: rgb(108, 72, 197);
    font-size: 0.85rem;
    font-weight: 500;
}

.info-row .value {
    color: rgb(18, 48, 174);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.result-footer {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1rem;
}

.result-footer .btn {
    flex: 1;
}

/* ============================================
   NOT FOUND
   ============================================ */
.not-found {
    text-align: center;
    padding: 3rem 2rem;
}

.not-found .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-body {
    background: rgb(255, 247, 247);
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(135deg, rgb(18, 48, 174) 0%, rgb(108, 72, 197) 100%);
    padding: 1.5rem;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 247, 247, 0.15);
    margin-bottom: 1.5rem;
    color: rgb(255, 247, 247);
    text-decoration: none;
}

.sidebar-logo .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 247, 247, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sidebar-logo .text h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.sidebar-logo .text span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 247, 247, 0.7);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 247, 247, 0.15);
    color: rgb(255, 247, 247);
}

.sidebar-menu a .menu-icon {
    width: 20px;
    text-align: center;
}

.sidebar-menu .divider {
    height: 1px;
    background: rgba(255, 247, 247, 0.1);
    margin: 1rem 0;
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
}

.admin-header {
    background: rgba(255, 247, 247, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(18, 48, 174, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h2 {
    font-size: 1.3rem;
    color: rgb(18, 48, 174);
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header .user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgb(18, 48, 174), rgb(108, 72, 197));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 247, 247);
    font-weight: 700;
    font-size: 1rem;
}

.admin-content {
    padding: 2rem;
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: rgba(255, 247, 247, 0.95);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(18, 48, 174, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(108, 72, 197, 0.1);
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 72, 197, 0.15);
}

.dash-card .card-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dash-card .card-icon.green {
    background: rgba(108, 72, 197, 0.1);
    color: rgb(108, 72, 197);
}

.dash-card .card-icon.blue {
    background: rgba(18, 48, 174, 0.1);
    color: rgb(18, 48, 174);
}

.dash-card .card-icon.orange {
    background: rgba(198, 143, 230, 0.1);
    color: rgb(198, 143, 230);
}

.dash-card .card-icon.red {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.dash-card .card-info h4 {
    font-size: 0.8rem;
    color: rgb(108, 72, 197);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-card .card-info .value {
    font-size: 1.6rem;
    font-weight: 800;
    color: rgb(18, 48, 174);
}

/* ============================================
   TABLE
   ============================================ */
.table-card {
    background: rgba(255, 247, 247, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(18, 48, 174, 0.08);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(108, 72, 197, 0.1);
}

.table-header h3 {
    font-size: 1.1rem;
    color: rgb(18, 48, 174);
}

.table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 72, 197, 0.05);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(108, 72, 197, 0.2);
}

.table-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
    color: rgb(18, 48, 174);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    background: rgba(18, 48, 174, 0.05);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgb(108, 72, 197);
    font-weight: 600;
}

table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(108, 72, 197, 0.05);
    font-size: 0.9rem;
    color: rgb(18, 48, 174);
}

table tbody tr:hover {
    background: rgba(108, 72, 197, 0.03);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
}

.action-btn.edit {
    background: rgba(18, 48, 174, 0.1);
    color: rgb(18, 48, 174);
}

.action-btn.edit:hover {
    background: rgb(18, 48, 174);
    color: rgb(255, 247, 247);
}

.action-btn.delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.action-btn.delete:hover {
    background: var(--danger);
    color: rgb(255, 247, 247);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgb(18, 48, 174) 0%, rgb(108, 72, 197) 50%, rgb(198, 143, 230) 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 247, 247, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.login-card {
    background: rgba(255, 247, 247, 0.95);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(18, 48, 174, 0.3);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

.login-card .logo-center {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgb(18, 48, 174), rgb(108, 72, 197));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: rgb(255, 247, 247);
    box-shadow: 0 8px 25px rgba(18, 48, 174, 0.3);
}

.login-card h2 {
    text-align: center;
    color: rgb(18, 48, 174);
    margin-bottom: 0.3rem;
}

.login-card .subtitle {
    text-align: center;
    color: rgb(108, 72, 197);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-card .input-group input {
    border: 2px solid rgba(108, 72, 197, 0.2);
    background: rgba(255, 247, 247, 0.9);
    color: rgb(18, 48, 174);
}

.login-card .input-group input::placeholder {
    color: rgb(108, 72, 197);
}

.login-card .input-group input:focus {
    border-color: rgb(108, 72, 197);
    background: rgb(255, 247, 247);
    box-shadow: 0 0 0 4px rgba(108, 72, 197, 0.15);
}

.login-card .input-group .icon {
    color: rgb(108, 72, 197);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 48, 174, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgb(255, 247, 247);
    border-radius: var(--radius);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(108, 72, 197, 0.1);
}

.modal-header h3 {
    font-size: 1.1rem;
    color: rgb(18, 48, 174);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(108, 72, 197, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: rgb(255, 247, 247);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgb(108, 72, 197);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(108, 72, 197, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    background: rgba(255, 247, 247, 0.9);
    color: rgb(18, 48, 174);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgb(108, 72, 197);
    background: rgb(255, 247, 247);
    box-shadow: 0 0 0 4px rgba(108, 72, 197, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(108, 72, 197, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall linear forwards;
    background: rgb(198, 143, 230);
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti:nth-child(2) { background: rgb(18, 48, 174); width: 8px; height: 8px; }
.confetti:nth-child(3) { background: rgb(108, 72, 197); width: 12px; height: 12px; }
.confetti:nth-child(4) { background: rgb(198, 143, 230); width: 6px; height: 6px; }
.confetti:nth-child(5) { background: rgb(255, 247, 247); width: 14px; height: 14px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .search-card {
        padding: 1.5rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .result-footer {
        flex-direction: column;
    }

    table {
        font-size: 0.8rem;
    }

    table thead th,
    table tbody td {
        padding: 8px 10px;
    }

    .table-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 247, 247, 0.3);
    border-top: 4px solid rgb(198, 143, 230);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: rgb(255, 247, 247);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(18, 48, 174, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }