﻿/* ============================================================
   IG EXAMS MODERN PORTAL â€” DESIGN SYSTEM
   Modern, Clean & Attractive Bootstrap Theme
   ============================================================ */

/* --- Google Fonts are loaded in _Layout.cshtml --- */

:root {
    /* Core Colors */
    --clr-primary: #0d6efd;
    /* Blue */
    --clr-primary-hover: #e02f4a;
    /* Darker Blue */
    --clr-primary-light: #fdf3f4;
    /* Light Blue */

    --clr-secondary: #6c757d;
    --clr-bg-page: #f4f7f6;
    --clr-bg-card: #ffffff;

    /* Semantic Colors */
    --clr-success: #10b981;
    --clr-warning: #f59e0b;
    --clr-danger: #ef4444;
    --clr-info: #3b82f6;

    /* Text Colors */
    --clr-text-main: #1e293b;
    /* Slate 800 */
    --clr-text-muted: #64748b;
    /* Slate 500 */
    --clr-text-light: #94a3b8;
    /* Slate 400 */
    --bs-primary: #132e46;
    --bs-primary-rgb: 13, 110, 253;
    --clr-bg-page: #f4f7f6;
    --clr-bg-card: #ffffff;
    --border-color: #e2e8f0;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   Base Styles
   ============================================================ */
body {
    background-color: var(--clr-bg-page);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    font-weight: 700;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #4338ca;
}

/* ============================================================
   Layout
   ============================================================ */
.main-content {
    padding-top: 100px;
    padding-bottom: 40px;
}

/* ============================================================
   Navbar Modernization
   ============================================================ */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: var(--bs-primary) !important;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: #64748b !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
    background-color: #eef2ff;
}

/* ============================================================
   Cards & Containers
   ============================================================ */
.glass-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

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

.hover-elevate {
    transition: all 0.2s ease;
}

.hover-elevate:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.table-card {
    overflow: hidden;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

.btn-premium {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white !important;
    border-radius: 9999px;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    transform: translateY(-1px);
}

/* ============================================================
   Tables
   ============================================================ */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.025em;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* ============================================================
   Forms
   ============================================================ */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

.bg-info-soft {
    background-color: #cff4fc;
    color: #055160;
}

.bg-success-soft {
    background-color: #d1e7dd;
    color: #0f5132;
}

.bg-warning-soft {
    background-color: #fff3cd;
    color: #664d03;
}

.bg-danger-soft {
    background-color: #f8d7da;
    color: #842029;
}

.bg-primary-soft {
    background-color: #cfe2ff;
    color: #084298;
}

.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.text-muted-soft {
    color: #64748b;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-card {
        margin-bottom: 1rem;
    }
}

/* ============================================================
   Custom Helpers
   ============================================================ */
.text-muted-soft {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* ============================================================
   Animations & Trendy Effects
   ============================================================ */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
}

.bg-gradient-trendy {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 50%, #d63384 100%);
}

.text-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #d63384 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #eef2ff 0%, transparent 50%), radial-gradient(circle at bottom left, #fce7f3 0%, transparent 50%);
    border-radius: 0 0 2rem 2rem;
}

.card-trendy {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-trendy:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-wrapper {
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.image-wrapper img {
    transition: transform 0.5s ease;
}

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

/* Creative SaaS Template Styles */
.banner-con {
    background: radial-gradient(circle at 80% 20%, #1e1b4b 0%, #0f172a 100%);
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.banner-con::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 202, 240, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

.banner-con::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(214, 51, 132, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

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

.banner-content-con .display-4 {
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.banner-content-con p {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.banner-social-icons {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 0;
    list-style: none;
}

.banner-social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-social-icons li a:hover {
    background: linear-gradient(135deg, #0d6efd, #d63384);
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(214, 51, 132, 0.3);
}

.banner-img-con {
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.banner-img-con .main-img {
    width: 100%;
    max-width: 650px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4));
    animation: float-3d 8s ease-in-out infinite;
    border-radius: 20px;
}

@keyframes float-3d {
    0% {
        transform: translateY(0) rotateX(2deg) rotateY(-2deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-2deg) rotateY(2deg);
    }

    100% {
        transform: translateY(0) rotateX(2deg) rotateY(-2deg);
    }
}

/* Paid Advertising Showcase */
.sponsor-showcase {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.sponsor-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(13, 110, 253, 0.1);
    border-color: #cbd5e1;
}

.sponsor-upsell {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sponsor-upsell:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Creative Masonry Grid (News & Events) */
.creative-grid .card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.creative-grid .card:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.creative-grid .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.creative-grid .card:hover .card-img-top {
    transform: scale(1.08);
}

.creative-grid .img-wrapper {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Sleek Timeline Events */
.event-timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.event-timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: #e2e8f0;
}

.event-timeline-item:last-child::before {
    display: none;
}

.event-timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d6efd;
    box-shadow: 0 0 0 4px #eef2ff;
}

/* Candidate Dashboard Specific Styles */
.w-20px {
    width: 20px;
    text-align: center;
}

.custom-hover {
    transition: all 0.2s ease;
}

.custom-hover:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.custom-hover-danger {
    transition: all 0.2s ease;
}

.custom-hover-danger:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

.candidate-dashboard-card {
    box-shadow: 0 0 40px rgba(29, 58, 83, 0.1) !important;
}

.bg-purple {
    color: #6f42c1;
}

/* --- Adminor Layout Styles --- */
.adminor-layout {
    background-color: #eaedf7;
    font-family: 'Inter', sans-serif;
}

.wrapper {
    width: 100%;
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background-color: #1b2024;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.sidebar-header {
    background-color: #15181b;
    height: 65px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-link {
    color: #8c98a4;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link[aria-expanded="true"] {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-nav .nav-icon {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.15rem;
}

.sidebar-nav .nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link[aria-expanded="true"] .nav-arrow {
    transform: rotate(180deg);
}

.sidebar-nav .submenu .nav-link {
    padding: 8px 15px 8px 45px;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
}

.sidebar-nav .submenu .nav-link::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4b5563;
    transition: all 0.3s;
}

.sidebar-nav .submenu .nav-link:hover {
    background-color: transparent;
    color: #fff;
}

.sidebar-nav .submenu .nav-link:hover::before {
    background-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.content-wrapper {
    margin-left: 250px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

.main-header {
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #fff;
}

.main-content {
    background-color: #eaedf7;
}

/* Sidebar Toggle State */
.sidebar.active {
    margin-left: -250px;
}

.content-wrapper.sidebar-active {
    margin-left: 0;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .content-wrapper.sidebar-active {
        margin-left: 0;
    }
}