:root {
    --primary: #0d6efd;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Brand Icon & Text */
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #666 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 4px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background-color: #f0f4ff;
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

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

.navbar-nav .dropdown-item {
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f0f4ff;
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.navbar-nav .dropdown-item i {
    color: var(--primary);
    width: 20px;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link i {
    font-size: 0.95rem;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 1rem;
        border-top: 1px solid #ddd;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .brand-text small {
        display: none;
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--info);
}

.breadcrumb-item.active {
    color: #666;
    font-weight: 500;
}

/* Category Cards */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Search Bar */
.search-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.search-input, .search-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
}

.search-input:focus, .search-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-search {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: #0b5ed7;
    color: white;
}

/* Job Cards */
.job-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.job-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #0d6efd;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d6efd;
    text-decoration: none;
    margin: 0;
}

.job-title:hover {
    text-decoration: underline;
}

.job-company {
    color: #666;
    font-weight: 600;
    margin-top: 5px;
}

.job-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 2px;
}

.badge-success {
    background-color: #d1f2eb;
    color: #0f6436;
}

.badge-primary {
    background-color: #cfe2ff;
    color: #084298;
}

.badge-info {
    background-color: #cff4fc;
    color: #055160;
}

.badge-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.badge-danger {
    background-color: #f8d7da;
    color: #842029;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #41464b;
}

/* Job Detail Page */
.job-detail {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-detail-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.job-detail-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.job-detail-company {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.job-detail-section h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0d6efd;
}

.job-detail-section p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.job-detail-section ul, .job-detail-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.job-detail-section li {
    margin-bottom: 8px;
}

.sidebar {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.sidebar-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sidebar-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.btn-apply {
    background-color: #198754;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.btn-apply:hover {
    background-color: #157347;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.filter-item {
    margin-bottom: 10px;
}

.filter-item input[type="checkbox"],
.filter-item input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-item label {
    cursor: pointer;
    user-select: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #0d6efd;
    color: white;
}

.pagination .active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid rgba(13, 110, 253, 0.1);
    margin-top: auto;
}

.footer-brand {
    animation: fadeInUp 0.5s ease;
}

.brand-icon-footer {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.brand-icon-footer:hover {
    transform: translateY(-3px);
}

.footer h5, .footer h6 {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-links li a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #0dcaf0 !important;
    padding-left: 5px;
}

.footer-links li a i {
    transition: all 0.3s ease;
}

.footer-links li a:hover i {
    color: #0d6efd;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.15);
    border-radius: 50%;
    color: #0d6efd;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    transform: translateY(-3px);
}

.footer .border-opacity-25 {
    opacity: 0.25;
}

.footer .text-muted {
    color: #adb5bd !important;
}

.footer a.text-muted:hover {
    color: #0dcaf0 !important;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .job-detail {
        padding: 20px;
    }

    .job-detail-title {
        font-size: 1.5rem;
    }

    .sidebar {
        position: static;
        margin-top: 20px;
    }

    .job-card {
        padding: 15px;
    }

    .footer {
        padding: 2rem 0 !important;
    }

    .footer .row {
        text-align: center;
    }

    .footer-links li a i {
        margin-right: 8px;
    }

    .social-links {
        justify-content: center;
    }

    .footer .text-md-end {
        text-align: center !important;
    }
}

/* Utility Classes */
.text-muted {
    color: #999;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-end { text-align: right; }
