/* IT Placement Portal - Premium White & Orange Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border-color: #e2e8f0;
    --border-glow: rgba(255, 102, 0, 0.35);
    
    --primary: #ff6600;
    --primary-hover: #ea580c;
    --primary-gradient: linear-gradient(135deg, #ff6600 0%, #ea580c 100%);
    --secondary-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --accent-gradient: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(255, 102, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 102, 0, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Glassmorphism & Clean Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.12);
    transform: translateY(-2px);
}

/* Sidebar Navigation */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.02);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 12px;
    margin: 0.2rem 0;
    transition: all 0.2s ease;
}

.nav-link-custom i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    width: 22px;
    text-align: center;
}

.nav-link-custom:hover {
    color: #ff6b00;
    background: #fff7ed;
}

.nav-link-custom.active {
    color: #ff6b00 !important;
    background: #fff7ed !important;
    font-weight: 700;
}

.nav-link-custom.active i {
    color: #ff6b00 !important;
}

.nav-link-custom.active-sub {
    color: #ff6b00 !important;
    font-weight: 700;
}

.avatar-circle-header {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

/* Top Header */
.app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.app-main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}

/* Dashboard Badges & Metrics */
.metric-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-primary { background: var(--primary-gradient); color: #fff; }
.badge-secondary { background: var(--secondary-gradient); color: #fff; }
.badge-accent { background: var(--accent-gradient); color: #fff; }
.badge-success { background: var(--success-gradient); color: #fff; }
.badge-warning { background: var(--warning-gradient); color: #fff; }

/* Custom Inputs & Buttons */
.form-control-custom, .form-select-custom {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.2);
    color: var(--text-main);
}

.btn-gradient-primary {
    background: var(--primary-gradient);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.25);
    transition: all 0.25s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    color: #fff !important;
}

.btn-gradient-success {
    background: var(--success-gradient);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.25s ease;
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #fff !important;
}

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

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
}

/* White Theme Tables */
.table-dark {
    --bs-table-bg: #ffffff;
    --bs-table-color: #0f172a;
    --bs-table-hover-bg: #fff7ed;
    --bs-table-hover-color: #0f172a;
    --bs-table-border-color: #e2e8f0;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-width: 1px;
}

/* Override utility text classes for White & Orange Theme */
.text-light {
    color: #0f172a !important;
}

.text-muted {
    color: #64748b !important;
}

.bg-dark {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.border-secondary {
    border-color: #cbd5e1 !important;
}

/* Exam Mode Fullscreen Interface */
.exam-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.exam-body {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background: #f8fafc;
}

.question-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.question-nav-btn.answered {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.question-nav-btn.current {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
    color: var(--primary);
}

.question-nav-btn.flagged {
    background: #f59e0b;
    color: #fff;
}

/* Anti-cheat Alert Modal */
.cheat-warning-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cheat-warning-box {
    background: #ffffff;
    border: 2px solid #ef4444;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
    animation: pulseAlert 1.5s infinite;
}

@keyframes pulseAlert {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Dynamic Leaderboard Row */
.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.rank-1 { background: gold; color: #000; box-shadow: 0 0 12px rgba(255, 215, 0, 0.8); }
.rank-2 { background: silver; color: #000; box-shadow: 0 0 12px rgba(192, 192, 192, 0.8); }
.rank-3 { background: #cd7f32; color: #fff; box-shadow: 0 0 12px rgba(205, 127, 50, 0.8); }

/* Certificate Card Frame */
.certificate-frame {
    border: 10px double #ff6600;
    background: #ffffff;
    color: #0f172a;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.15);
}

/* Page Hero Banner - Signature Orange Dot Matrix Pattern */
.page-hero {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 50%, #ffb347 100%);
    border-radius: 18px;
    padding: 32px 36px 28px;
    margin-bottom: 24px;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.25);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.09'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4, .page-hero h5 {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    margin: 0;
}
.page-hero p, .page-hero span {
    color: rgba(255, 255, 255, 0.92) !important;
    position: relative;
    z-index: 2;
}
.page-hero .btn {
    position: relative;
    z-index: 2;
}

/* Custom Orange Primary Button */
.btn-primary-orange {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%) !important;
    background-color: #ff6b00 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-primary-orange:hover, .btn-primary-orange:focus, .btn-primary-orange:active {
    background: linear-gradient(135deg, #e66000 0%, #ff6b00 100%) !important;
    background-color: #e66000 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45) !important;
    transform: translateY(-1px);
}

/* Footer Link Utilities */
.hover-underline:hover {
    text-decoration: underline !important;
}
.hover-dark:hover {
    color: #1e293b !important;
}
.text-orange {
    color: #ff6b00 !important;
}

