/* ============================================================
   EduVerify NG - Complete Stylesheet
   ============================================================ */

/* CSS Variables */
:root {
    --primary: #1a56db;
    --primary-dark: #164bc7;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: white !important;
}

.brand-icon {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
}

.brand-ng {
    color: var(--accent);
    margin-left: 2px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.15);
}

.nav-link.btn-login {
    border: 1px solid rgba(255,255,255,0.5);
    margin-right: 0.5rem;
}

.nav-link.btn-register {
    background: var(--accent);
    color: var(--dark) !important;
    font-weight: 600;
}

.nav-link.btn-register:hover {
    background: #e0900a;
    transform: translateY(-1px);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary);
    color: white;
}

.dropdown-divider {
    margin: 0.4rem 0.5rem;
    border-color: var(--gray-lighter);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #6366f1 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero .lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    background: #e0900a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,0.3);
    color: var(--dark);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

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

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-xl);
}

.hero-card h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================
   SEARCH BOX (Homepage)
   ============================================================ */

.search-section {
    background: white;
    padding: 3rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.search-tab {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid var(--gray-lighter);
    background: white;
    color: var(--gray);
    transition: var(--transition);
}

.search-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.search-tab:hover:not(.active) {
    border-color: var(--primary-light);
    color: var(--primary);
}

.search-box {
    display: flex;
    gap: 0.75rem;
    background: var(--light);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-lighter);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
}

.search-box select {
    border: none;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
    min-width: 140px;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-lighter);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
    background: white;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1.25rem;
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.step-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */

.pricing-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf2ff 100%);
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.pricing-period {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

.pricing-features li.not-included {
    color: var(--gray-light);
    text-decoration: line-through;
}

.pricing-features li.not-included svg {
    color: var(--gray-light);
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-lighter);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.stat-content p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--gray-lighter);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow-y: auto;
    padding-top: 1rem;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-lighter);
    margin-bottom: 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.sidebar-brand .brand-ng {
    color: var(--accent);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu a svg {
    width: 20px;
    height: 20px;
}

.sidebar-menu a:hover {
    color: var(--primary);
    background: rgba(26,86,219,0.05);
}

.sidebar-menu a.active {
    color: var(--primary);
    background: rgba(26,86,219,0.08);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-divider {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-light);
    font-weight: 700;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-lighter);
}

.topbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

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

/* Mobile sidebar toggle */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1039;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

/* =============================================================================
   Dashboard Layout & Sidebar Styles
   ============================================================================= */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Base Styles */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: #e2e8f0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-brand .brand-text,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .divider-text,
.sidebar.collapsed .sidebar-divider::after,
.sidebar.collapsed .menu-badge {
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .menu-icon {
    margin-right: 0;
}

.sidebar.collapsed .menu-points {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
}

.sidebar.collapsed .sidebar-collapse-btn {
    transform: rotate(180deg);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-ng {
    color: #f59e0b;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-collapse-btn:hover {
    color: #000;
    background: rgba(0,0,0,0.08);
}

.sidebar-divider {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: white;
    background: rgba(255,255,255,0.05);
}

.sidebar-menu a.active {
    border-left: 3px solid #1a56db;
}

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.menu-icon svg {
    width: 100%;
    height: 100%;
}

.menu-text {
    white-space: nowrap;
}

.menu-badge {
    margin-left: auto;
    font-size: 0.65rem;
}

/* Tooltip for collapsed state */
.sidebar.collapsed .sidebar-menu li:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.85rem;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 1.5rem;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .sidebar-overlay + .main-content {
    margin-left: 70px;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.topbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
}

.stat-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Action Cards */
.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.action-student { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.1); }
.action-student:hover { background: rgba(239,68,68,0.1); }
.action-teacher { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.1); }
.action-teacher:hover { background: rgba(245,158,11,0.1); }
.action-verify { background: rgba(26,86,219,0.05); border-color: rgba(26,86,219,0.1); }
.action-verify:hover { background: rgba(26,86,219,0.1); }
.action-manage { background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.1); }
.action-manage:hover { background: rgba(16,185,129,0.1); }

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-student .action-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
.action-teacher .action-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.action-verify .action-icon { background: rgba(26,86,219,0.1); color: #1a56db; }
.action-manage .action-icon { background: rgba(16,185,129,0.1); color: #10b981; }

.action-card h6 { margin-bottom: 0.25rem; font-weight: 700; }
.action-card p { margin-bottom: 0; font-size: 0.8rem; color: #6b7280; }

/* Advert Cards */
.advert-card-full {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.advert-card-full:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.advert-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.advert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.advert-card-full:hover .advert-image-wrapper img {
    transform: scale(1.05);
}

.advert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advert-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.share-platforms {
    margin-top: auto;
}

.btn-share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-share-platform:hover {
    transform: translateY(-2px);
    color: white;
    opacity: 0.9;
}

.btn-share-platform span {
    font-size: 0.7rem;
}

.btn-whatsapp { background: #25D366; }
.btn-facebook { background: #1877F2; }
.btn-twitter { background: #000000; }
.btn-telegram { background: #0088cc; }

/* ============================================================
   TABLES
   ============================================================ */

.table-container {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-bottom: 1px solid var(--gray-lighter);
    padding: 0.875rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--dark);
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background: rgba(26,86,219,0.02);
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge.bg-success {
    background: rgba(16,185,129,0.15) !important;
    color: #047857;
}

.badge.bg-warning {
    background: rgba(245,158,11,0.15) !important;
    color: #b45309;
}

.badge.bg-danger {
    background: rgba(239,68,68,0.15) !important;
    color: #b91c1c;
}

.badge.bg-info {
    background: rgba(59,130,246,0.15) !important;
    color: #1d4ed8;
}

.badge.bg-primary {
    background: rgba(26,86,219,0.15) !important;
    color: var(--primary);
}

.badge.bg-secondary {
    background: rgba(100,116,139,0.15) !important;
    color: var(--gray);
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    color: #047857;
}

.alert-danger {
    background: rgba(239,68,68,0.1);
    color: #b91c1c;
}

.alert-warning {
    background: rgba(245,158,11,0.1);
    color: #b45309;
}

.alert-info {
    background: rgba(59,130,246,0.1);
    color: #1d4ed8;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border: 2px solid var(--gray-lighter);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-floating > .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

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

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}

/* ============================================================
   AUTH PAGES (Login, Register)
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf2ff 50%, #fff7ed 100%);
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2rem;
    text-align: center;
    color: white;
}

.auth-header .brand-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.auth-header h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-lighter);
    background: var(--light);
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */

.result-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
}

.result-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-lighter);
}

.result-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.result-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
}

.result-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .brand-ng {
    color: var(--accent);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-newsletter {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter .form-control {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.copyright, .developer {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1060;
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-lighter);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-lighter);
    padding: 1.25rem 1.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination .page-link {
    border: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    margin: 0 0.15rem;
    border-radius: var(--radius);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    font-weight: 600;
}

.pagination .page-link:hover {
    background: rgba(26,86,219,0.1);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s ease infinite;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 3rem 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.page-content {
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    padding: 2.5rem;
    min-height: 400px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--gray-light);
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-lighter);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--gray-lighter);
    margin-left: -5px;
}

.timeline-content {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-lighter);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box select {
        width: 100%;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .footer-newsletter {
        flex-direction: column;
    }
    
    .pricing-amount {
        font-size: 2.5rem;
    }
    
    .auth-body {
        padding: 1.5rem;
    }
    
    .topbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .result-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .navbar, .site-footer, .scroll-top, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================
   MOBILE BOTTOM NAV + LOGGED-IN FOOTER (added 2026-08-18)
   Mirrors the edumatch.com.ng / eduvendor.com.ng mobile pattern:
   5-item fixed bottom bar (Home, Verify, EduMatch, Wallet, Menu)
   where Menu opens/closes the sidebar.
   ============================================================ */

/* One-line footer for logged-in users (desktop) */
.ev-user-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    margin-left: 260px; /* aligns with expanded sidebar */
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    transition: margin-left 0.3s ease;
}
.ev-user-footer-dot { color: #cbd5e1; }

/* Mobile bottom navigation — hidden on desktop */
.ev-mobile-nav {
    display: none;
}

@media (max-width: 991.98px) {
    /* Room for the fixed bottom bar */
    body { padding-bottom: 68px; }

    /* The floating round trigger is replaced by the bottom-bar Menu button.
       (It stays in the DOM; the Menu button drives it programmatically.) */
    .ev-mobile-trigger { display: none !important; }

    /* One-line footer sits above the bottom bar, compact */
    .ev-user-footer {
        margin-left: 0;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .ev-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
        z-index: 1050;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .ev-mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px 0;
        transition: color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .ev-mobile-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .ev-mobile-nav-item:hover,
    .ev-mobile-nav-item.active {
        color: #1a56db;
    }

    .ev-mobile-nav-item:active {
        transform: scale(0.94);
    }
}

/* Desktop: sidebar-collapsed state shifts the one-line footer too */
@media (min-width: 992px) {
    .ev-sidebar.ev-collapsed ~ .ev-user-footer,
    body:has(.ev-sidebar.ev-collapsed) .ev-user-footer {
        margin-left: 68px;
    }
}

