/* 
 * Custom Stylesheet - Karmaveer Examination Portal
 * Design system variables and responsive utilities
 */

:root {
    --primary-color: #1e3a8a;       /* Deep Royal Blue */
    --primary-light: #dbeafe;      /* Soft Blue Accent */
    --primary-hover: #172554;
    
    --secondary-color: #0f766e;     /* Deep Teal */
    --secondary-light: #ccfbf1;    /* Soft Teal Accent */
    --secondary-hover: #115e59;
    
    --accent-color: #b45309;        /* Warm Amber */
    --accent-light: #fef3c7;       /* Soft Amber Accent */
    
    --dark-color: #1e293b;         /* Charcoal Slate */
    --light-color: #f8fafc;        /* Off-white */
    --muted-light: #94a3b8;
    --text-muted-light: #cbd5e1;

    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Typography & Global Styles */
body {
    font-family: 'Inter', 'Mukta', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
}

/* Transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale:hover {
    transform: translateY(-3px);
}

.hover-shadow:hover {
    box-shadow: var(--hover-shadow) !important;
}

/* Brand styling */
.portal-logo {
    transition: transform 0.3s ease;
}
.navbar-brand:hover .portal-logo {
    transform: scale(1.05);
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%);
    min-height: 480px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    z-index: -1;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-illustration {
    max-height: 350px;
    animation: float 6s ease-in-out infinite;
}

.drop-shadow {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); }
    20%, 40%, 60%, 80% { transform: rotate(-10deg); }
}

.animate-bell {
    animation: bell-ring 3s ease infinite;
    transform-origin: top center;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Title Underlines */
.title-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.title-underline-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* About Decoration */
.about-bg-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-light);
    border-radius: 8px;
    z-index: 0;
}

/* Badges and Bullets */
.bg-primary-light { background-color: var(--primary-light); }
.bg-success-light { background-color: var(--secondary-light); }
.bg-warning-light { background-color: var(--accent-light); }
.bg-danger-light { background-color: #fee2e2; }
.bg-info-light { background-color: #e0f2fe; }
.bg-secondary-light { background-color: #f1f5f9; }
.bg-purple-light { background-color: #fae8ff; }
.bg-teal-light { background-color: #f0fdf4; }

.text-primary-light { color: #3b82f6; }
.text-purple { color: #a21caf; }
.text-teal { color: #0d9488; }
.text-muted-light { color: #94a3b8; }

.feature-bullet {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Card Header Gradients */
.card-header-gradient-1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.card-header-gradient-2 {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-card {
    border: 1px solid rgba(0,0,0,0.03);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 58, 138, 0.1);
}

/* Notice List */
.notice-list .list-group-item {
    transition: transform 0.2s ease;
}
.notice-list .list-group-item:hover {
    transform: translateX(5px);
}

/* Announcement Ticker */
.announcement-ticker-container {
    background-color: #ffffff;
}

.announcement-item {
    border-left-width: 5px !important;
    transition: all 0.3s ease;
}
.announcement-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Map responsive adjustment */
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Login specific styles */
.login-page-container {
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.btn-role {
    background: transparent;
    color: var(--dark-color);
    border: none;
}
.btn-role:hover {
    color: var(--primary-color);
}
.btn-role.active,
.btn-role.active * {
    color: #ffffff !important;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.cursor-pointer {
    cursor: pointer;
}

/* Footer Link Hovers */
.footer-links a {
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 2px;
}

.hover-primary:hover {
    color: #3b82f6 !important;
}

/* Custom shadow utility */
.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Marathi Google Input Tools Suggestions Styling */
.marathi-suggestions-box {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #c7d2fe !important;
    background-color: #ffffff;
    border-radius: 0.5rem;
}
.marathi-suggestion-item {
    cursor: pointer;
    transition: background-color 0.12s ease-in-out, color 0.12s ease-in-out;
    font-family: 'Mukta', sans-serif;
    user-select: none;
}
.marathi-suggestion-item:hover, .marathi-suggestion-item.active {
    background-color: #e0e7ff !important;
    color: #1e3a8a !important;
}
.marathi-suggestion-item.active .badge {
    background-color: #2563eb !important;
    color: #ffffff !important;
}



/* ==========================================================================
   Dashboard Modern Executive UI Components
   ========================================================================== */

/* Top Header Navbar Modern Polish */
.app-header.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    min-height: 64px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04) !important;
}

/* User Profile Trigger Button */
.user-profile-trigger {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    padding: 5px 12px 5px 6px !important;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.user-profile-trigger:hover, 
.user-profile-trigger[aria-expanded="true"] {
    background: #f8fafc;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
}
.user-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.user-avatar-badge .online-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* User Menu Dropdown Card */
.user-menu-dropdown {
    width: 320px;
    max-width: 95vw;
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    animation: userDropdownIn 0.2s ease-out;
    padding: 0;
    overflow: hidden;
}
@keyframes userDropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-menu-header .avatar-large {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    border: 3px solid rgba(255,255,255,0.25);
}
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.user-menu-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    transform: translateX(3px);
}
.user-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

/* Modern Dashboard Stat Cards */
.stat-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
}
.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--stat-bar, #3b82f6);
}
.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Quick Action Tiles */
.quick-action-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1.15rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s ease;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.quick-action-tile:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    box-shadow: 0 6px 16px -2px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
    color: #1d4ed8;
}

/* Hover-up utility */
.hover-up {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-up:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.08) !important;
}

/* Smooth Scale on Hover */
.hover-scale {
    transition: transform 0.15s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}
