/* Main Stylesheet for Internspro */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.dashboard-stat-card {
    border-left: 4px solid var(--primary-color);
}

.btn-primary {
    padding: 10px 20px;
    font-weight: 500;
}

#msg-flash {
    margin-bottom: 20px;
}

/* Auth Pages */
.auth-card {
    max-width: 450px;
    margin: 60px auto;
}

/* Profile tracker */
.progress-container {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 5px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* --- Modern UI Enhancements --- */

:root {
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    --grad-primary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --grad-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --grad-warning: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --grad-info: linear-gradient(135deg, #c471ed 0%, #f64f59 100%);
    /* Using a vivid mix */
}

/* Body override for admin */
.admin-body {
    background: var(--bg-gradient);
    font-family: 'Inter', sans-serif;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.1) !important;
}

/* Gradient Backgrounds */
.bg-grad-primary {
    background: var(--grad-primary) !important;
    color: white;
}

.bg-grad-success {
    background: var(--grad-success) !important;
    color: white;
    border: none;
}

.bg-grad-warning {
    background: var(--grad-warning) !important;
    color: white;
    border: none;
}

.bg-grad-info {
    background: var(--grad-info) !important;
    color: white;
    border: none;
}

/* Modern Admin Layout */
.admin-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Sidebar Styles */
.admin-sidebar {
    width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu .nav-item {
    padding: 2px 20px;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #555;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-menu .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar-menu .nav-link.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.sidebar-menu .nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fbfc;
    /* Subtle background for main content area */
}

/* Admin Topbar */
.admin-topbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* Stat Card Icon Styling */
.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper i {
    font-size: 1.75rem;
}

/* Animated Pulse Effect */
@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.pulse-badge {
    animation: pulse-soft 2s infinite;
}

@media (max-width: 992px) {
    .admin-sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100vh;
    }

    .admin-sidebar.show {
        margin-left: 0;
    }
}

/* --- Premium Animations & Reveal --- */

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.ani-fade-up { animation: fadeInUp 0.8s ease backwards; }
.ani-fade-down { animation: fadeInDown 0.8s ease backwards; }
.ani-fade-left { animation: fadeInLeft 0.8s ease backwards; }
.ani-float { animation: float 4s ease-in-out infinite; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; animation-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; animation-delay: 0.4s; }

/* Enhanced Card Micro-interactions */
.hover-lift-lg {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift-lg:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.hero-glow-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 2rem;
}

.hero-glow-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    animation: float 10s infinite alternate;
    z-index: 0;
}

.letter-spacing-2 { letter-spacing: 0.15rem; }
