@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d6efd; /* Bootstrap Primary Blue */
    --gold-color: #ffc107;    /* Bootstrap Warning Gold */
    --secondary-color: #6c757d;
        --nav-red: #b30000;
    --dark-bg: #f8f9fa;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    font-family: var(--font-primary);
    font-optical-sizing: auto;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--dark-accent);
}

.dashboard-wrapper {
    background: #f4f7f6;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: bold;
    color: var(--nav-red) !important;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Bento Card Logic - The "Floating Tile" Look */
.bento-card {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

/* Glassmorphism Variants */
.glass-red {
    background: linear-gradient(135deg, var(--nav-red) 0%, #7e0000 100%);
    color: #fff;
}

.glass-dark {
    background: var(--dark-accent);
    color: #fff;
}

.glass-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.glass-green {
    background: #ecfdf5;
    color: #10b981;
}

.btn-auth-premium {
    background: var(--nav-red);
    color: #ffffff !important;
    border: none;
    padding: 14px 30px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(179, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;
}

.btn-auth-premium:hover {
    background: #8b0000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(179, 0, 0, 0.3);
}

.job-category-card {
    transition: transform 0.3s;
    cursor: pointer;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.pill-stat {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 50px 0 20px;
}

/* Auth Enhancements */
.input-group-text {
    background-color: white;
    border-right: none;
    color: var(--secondary-color);
}

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

.input-group .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

/* Metric Icons & Data Visualization */
.tile-icon-light {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tile-icon-red {
    width: 45px;
    height: 45px;
    background: #fff1f2;
    color: var(--nav-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Premium Label & Control */
.premium-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.form-control-premium {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-accent);
    transition: all 0.3s ease;
}

.form-control-premium:focus {
    background: #fff;
    border-color: var(--nav-red);
    box-shadow: 0 0 0 4px rgba(179, 0, 0, 0.1);
    outline: none;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Sidebar Navigation (Modern) */
.side-nav-modern .nav-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #64748b;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: 16px;
    transition: 0.3s;
    margin-bottom: 6px;
}

.side-nav-modern .nav-item-new.active {
    background: var(--nav-red);
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(179, 0, 0, 0.2);
}

.side-nav-modern .nav-item-new:hover:not(.active) {
    background: #fff1f2;
    color: var(--nav-red);
    transform: translateX(4px);
}

/* --- Global Button & Input Refinement --- */
.btn-primary,
.btn-warning,
.btn-auth-premium,
button[type="submit"] {
    background-color: var(--nav-red) !important;
    border-color: var(--nav-red) !important;
    color: #ffffff !important;
    border-radius: 16px;
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(179, 0, 0, 0.15);
}

.btn-primary:hover,
.btn-warning:hover,
.btn-auth-premium:hover,
button[type="submit"]:hover {
    background-color: #8b0000 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(179, 0, 0, 0.25);
}

.btn-outline-primary {
    color: var(--nav-red);
    border-color: var(--nav-red);
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-action-modern {
    background: var(--nav-red);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none !important;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
    box-shadow: 0 5px 15px rgba(179, 0, 0, 0.2);
}

.btn-action-modern:hover {
    background: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 0, 0, 0.3);
}

.btn-filter {
    color: var(--nav-red);
    font-weight: 800;
    font-size: 0.85rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-filter:hover {
    color: #8b0000;
}

/* Force All Form Controls to Premium Style */
.form-control,
.form-select,
.form-control-premium {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-accent);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: var(--nav-red);
    box-shadow: 0 0 0 4px rgba(179, 0, 0, 0.1);
    outline: none;
}

/* Tom Select Styling */
.ts-control {
    border-radius: 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    background: #f8fafc !important;
    font-weight: 600 !important;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--nav-red) !important;
    box-shadow: 0 0 0 4px rgba(179, 0, 0, 0.1) !important;
}

.ts-dropdown {
    border-radius: 14px !important;
    margin-top: 5px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.ts-dropdown .active {
    background-color: var(--nav-red) !important;
    color: #fff !important;
}

.modal-content {
    border: none;
    border-radius: 20px;
}
/* Fix Burger Menu Visibility */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    color: var(--nav-red) !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28179, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Premium Alerts */
.premium-alert {
    border: none;
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.premium-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
}

.premium-alert-success {
    background: rgba(236, 253, 245, 0.9);
    color: #065f46;
}
.premium-alert-success::before { background: #10b981; }

.premium-alert-error {
    background: rgba(254, 242, 242, 0.9);
    color: #991b1b;
}
.premium-alert-error::before { background: var(--nav-red); }

.premium-alert .btn-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: 0.3s;
}

.premium-alert .btn-close:hover {
    opacity: 1;
}

/* Offcanvas Slide-out Customization */
.offcanvas {
    border: none !important;
    border-radius: 24px 0 0 24px !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05) !important;
}

.offcanvas-header {
    padding: 2rem 1.5rem 1rem;
}

.offcanvas-body {
    padding: 1rem 1.5rem;
}

.offcanvas .nav-link {
    font-weight: 700;
    color: #64748b !important;
    padding: 12px 18px !important;
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offcanvas .nav-link:hover {
    background: #fff1f2;
    color: var(--nav-red) !important;
    transform: translateX(4px);
}

.offcanvas-backdrop.show {
    opacity: 0.4;
    backdrop-filter: blur(4px);
}
