/* Modern Color Scheme for SJOB Platform */
:root {
    /* Core colors - Modern Purple-Blue Gradient Theme */
    --primary-color: #00CC66; /* Deep indigo */
    --primary-light: #818cf8; /* Lighter indigo */
    --primary-dark: #3730a3; /* Darker indigo */
    --secondary-color: #10b981; /* Emerald green */
    --secondary-light: #34d399; /* Light emerald */
    --secondary-dark: #059669; /* Dark emerald */
    --accent-color: #f97316; /* Orange accent */
    --text-on-primary: #ffffff;
    --dark-color: #1e293b; /* Slate dark */
    --light-color: #f8fafc; /* Light background */
    /* Additional palette */
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    /* Additional accent colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    /* Text color - Fixed to #006666 */
    --heading-text-color: #006666;
    /* Component variables */
    --card-border-radius: 12px;
    --button-border-radius: 8px;
    --input-border-radius: 8px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--heading-text-color);
}

a {
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

    a:hover {
        color: var(--primary-dark);
        text-decoration: none;
    }

/* Header & Navbar Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    padding: 0.8rem 1rem;
    border-bottom: none !important;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

    .navbar-brand img {
        height: 45px;
        filter: brightness(0) invert(1);
        transition: transform var(--transition-speed);
    }

    .navbar-brand:hover img {
        transform: scale(1.05);
    }

.navbar-nav.center-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.nav-link {
    color: var(--text-on-primary) !important;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .nav-link:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: var(--secondary-color);
        transition: width var(--transition-speed) ease;
        z-index: -1;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-3px);
    }

        .nav-link:hover:before {
            width: 100%;
        }

/* User Profile */
.user-profile-nav {
    margin-left: auto;
}

.user-profile-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

.user-profile-nav .dropdown-toggle:hover .user-profile-image {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    transition: all var(--transition-speed) ease;
}

    .dropdown-item:hover {
        background-color: rgba(79, 70, 229, 0.1);
        color: var(--heading-text-color);
        transform: translateX(5px);
    }

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--button-border-radius);
    transition: all var(--transition-speed) ease;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
        box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
    }

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border: none;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

    .btn-success:hover {
        background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
        box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    }

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-radius: 0 0 60px 60px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

    .hero-section:before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, rgba(79, 70, 229, 0) 70%);
        z-index: 0;
    }

    .hero-section:after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
        z-index: 0;
    }

    .hero-section h1 {
        font-weight: 800;
        margin-bottom: 1.5rem;
        color: var(--heading-text-color);
        line-height: 1.2;
        position: relative;
        z-index: 1;
    }

    .hero-section p.lead {
        font-size: 1.2rem;
        color: var(--neutral-600);
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
    }

    .hero-section .card {
        border: none;
        border-radius: var(--card-border-radius);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1;
    }

/* Card Styles */
.card {
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

    .card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-5px);
    }

.card-title {
    font-weight: 700;
    color: var(--heading-text-color);
}

/* Job Cards */
.job-card {
    position: relative;
    border: none;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    height: 100%;
}

    .job-card .card-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

.company-name {
    color: var(--heading-text-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.location, .salary, .job-type, .views {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

    .location i, .salary i, .job-type i, .views i {
        margin-right: 0.5rem;
        color: var(--primary-color);
        width: 16px;
        text-align: center;
    }

.premium-badge .badge {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.popular-badge .badge {
    background-color: var(--danger-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--card-border-radius);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--neutral-200);
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-color: var(--neutral-300);
    }

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-text-color);
}

/* Update the original gradient text to solid color */
.category-icon {
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background: initial;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: var(--input-border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-300);
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

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

.form-label {
    font-weight: 500;
    color: var(--heading-text-color);
    margin-bottom: 0.5rem;
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--heading-text-color);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
    }

/* Wishlist Button */
.wishlist-toggle {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .wishlist-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .wishlist-toggle .fas.fa-heart,
    .wishlist-toggle .far.fa-heart {
        color: var(--accent-color);
    }

    .wishlist-toggle.active i {
        animation: heartBeat 1s;
    }

.btn-wishlist {
    width: 40px;
    height: 38px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-wishlist:hover {
        background-color: #f1f1f1;
        border-color: #c8c8c8;
    }

    .btn-wishlist i {
        font-size: 1.1rem;
        color: var(--accent-color);
        transition: all 0.3s ease;
    }

    .btn-wishlist.active {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }

        .btn-wishlist.active i {
            color: #fff;
        }

/* Footer Styles */
footer {
    background-color: var(--neutral-100);
    border-top: none !important;
    margin-top: 4rem;
}

    footer h5 {
        color: var(--heading-text-color);
        font-weight: 600;
        margin-bottom: 1.2rem;
        position: relative;
        padding-bottom: 0.8rem;
    }

        footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        }

.footer-link {
    position: relative;
    transition: all var(--transition-speed) ease;
    padding-left: 5px;
    color: var(--neutral-700);
}

    .footer-link:hover {
        padding-left: 10px;
        color: var(--heading-text-color) !important;
    }

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

    .contact-item i {
        margin-right: 10px;
        color: var(--heading-text-color);
        font-size: 1.2rem;
    }

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white !important;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
}

    .social-icons a:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    }

.footer-bottom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-on-primary);
    padding: 1rem 0;
}

/* Featured Job Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

    .featured-badge .badge {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    }

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-speed) ease;
}

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

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--heading-text-color);
}

    .pagination .page-link:hover {
        background-color: var(--primary-light);
        color: white;
    }
