/* Aurora UI - Modern Professional Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00b894;
    --primary-soft: rgba(0, 184, 148, 0.1);
    --primary-dark: #009473;
    --primary-light: #55efc4;
    --secondary: #f4f7f6;
    --accent: #00d2d3;
    --dark: #2d3436;
    --muted: #636e72;
    --border-card: rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(0, 184, 148, 0.15);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--secondary);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* =========================================
   1. CORE COMPONENT: CARDS
   ========================================= */

.card-modern {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Metric Cards (Top Row) */
.card-metric {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-metric .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.card-metric .metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--muted);
}

.card-metric .metric-icon-bg {
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 6rem;
    opacity: 0.04;
    transform: rotate(-15deg);
    transition: var(--transition);
}

.card-metric:hover .metric-icon-bg {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.1);
}

.card-metric:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* =========================================
   2. CORE COMPONENT: HEADERS & ICONS
   ========================================= */

.header-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.card-modern:hover .header-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
}

/* =========================================
   3. CORE COMPONENT: TABLES
   ========================================= */

.table-modern {
    width: 100%;
    margin-bottom: 0;
}

.table-modern thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border: none;
    padding: 1rem 1.5rem;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border-card);
}

.table-modern tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-card);
    font-size: 0.9rem;
    font-weight: 500;
}

.row-hover {
    transition: var(--transition);
    border-radius: 12px;
}

.row-hover:hover {
    background-color: #f8fffc !important;
    transform: scale(1.005);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    z-index: 5;
    position: relative;
}

/* =========================================
   4. CORE COMPONENT: TIMELINE (LOGS)
   ========================================= */

.timeline-list {
    position: relative;
    padding-left: 10px;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid #edf2f0;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
    transition: var(--transition);
    z-index: 2;
}

.timeline-content {
    background: #fff;
    padding: 0;
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* =========================================
   5. NAVIGATION & UTILITIES
   ========================================= */

.nav-pills-modern {
    background: #f1f3f2;
    padding: 4px;
    border-radius: 50px;
    display: inline-flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
}

.nav-pills-modern .nav-item {
    flex: 1;
    text-align: center;
}

.nav-pills-modern .nav-link {
    border-radius: 50px;
    padding: 8px 15px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-pills-modern .nav-link.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Badge Styles */
.badge-pill-soft {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.bg-primary-soft {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.bg-danger-soft {
    background: rgba(214, 48, 49, 0.1);
    color: #d63031;
}

.bg-warning-soft {
    background: rgba(253, 203, 110, 0.1);
    color: #e17055;
}

.bg-info-soft {
    background: rgba(9, 132, 227, 0.1);
    color: #0984e3;
}

/* Sticky & Scroll */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 90;
}

.custom-scroll::-webkit-scrollbar {
    width: 5px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #dfe6e9;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =========================================
   6. LEGACY / PAGE SPECIFIC (EXAM, HEADER)
   ========================================= */

/* Dashboard Header */
.aurora-header {
    background: linear-gradient(135deg, #00b894 0%, #009473 100%) !important;
    border-radius: 0 0 40px 40px;
    padding: 60px 20px !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.aurora-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

/* Exam Page Containers */
.exam-container {
    max-width: 960px;
}

.question-container {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
}

.container-jawaban {
    border: 2px solid #f1f3f2;
    border-radius: 16px;
    padding: 15px 15px 15px 60px;
    margin-bottom: 10px;
    background: #fff;
    transition: var(--transition);
    position: relative;
}

.container-jawaban:hover {
    border-color: var(--primary);
    background: #f8fffc;
}

.checkmark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid #dfe6e9;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.container-jawaban input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Sidebar & Navbar */
.main-sidebar {
    background: linear-gradient(180deg, #1e272e 0%, #009473 100%) !important;
}

.brand-link {
    background: rgba(0, 0, 0, 0.2) !important;
}

.main-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.nav-sidebar .nav-item .nav-link.active {
    background-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}