
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}


.custom-navbar-dark {
    background-color: #212836 !important; 
    padding: 0.8rem 0; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.custom-navbar-dark .navbar-brand {
    color: white !important; 
}

.custom-navbar-dark .navbar-brand .logo-icon {
    font-size: 2.2rem;
    color: #007bff; 
    line-height: 1; 
}

.custom-navbar-dark .navbar-brand h1 {
    font-weight: 700;
    margin-left: 0.5rem; 
}


.recruiter-button {
    background-color: #343a40 !important; 
    color: white !important;
    border: none !important;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem !important;
}
.recruiter-button:hover {
    background-color: #495057 !important;
    color: white !important;
}

/* Main nav links */
.main-nav-links .nav-item .nav-link {
    color: white !important; 
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav-links .nav-item .nav-link:hover,
.main-nav-links .nav-item .nav-link.active {
    color: #007bff !important; 
}

/* Dropdown menu styling for "More" */
.custom-navbar-dark .dropdown-menu {
    background-color: #2b323f !important; 
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.custom-navbar-dark .dropdown-item {
    color: white !important;
    transition: background-color 0.2s ease;
}

.custom-navbar-dark .dropdown-item:hover,
.custom-navbar-dark .dropdown-item:focus {
    background-color: #007bff !important; 
    color: white !important;
}
.custom-navbar-dark .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}



.user-actions {
    gap: 0.75rem; 
}

/* Login button */
.login-button {
    background-color: #343a40 !important; /* Darker grey */
    color: white !important;
    border: none !important;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem !important;
}
.login-button:hover {
    background-color: #495057 !important;
    color: white !important;
}

/* Circular action buttons */
.action-circle-button {
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    color: white !important;
    border: none !important;
    flex-shrink: 0 !important; 
    transition: background-color 0.3s ease;
}

.orange-bg {
    background-color: #fd7e14 !important; 
}
.orange-bg:hover {
    background-color: #e66c0d !important;
}

.blue-bg {
    background-color: #007bff !important; 
}
.blue-bg:hover {
    background-color: #0056b3 !important;
}

/* Toggler icon color */
.custom-navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.custom-navbar-dark .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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}



@media (max-width: 991.98px) { 
    .custom-navbar-dark .container-fluid {
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .custom-navbar-dark .navbar-collapse {
        width: 100%; 
    }
    .custom-navbar-dark .main-nav-links {
        margin-right: 0 !important; 
        margin-top: 1rem; 
        flex-direction: column; 
        align-items: center;
        width: 100%;
    }
    .custom-navbar-dark .user-actions {
        margin-top: 1rem;
        width: 100%;
        justify-content: center; 
    }
    .custom-navbar-dark .navbar-toggler {
        margin-left: auto; 
    }
    .custom-navbar-dark .navbar-brand {
        margin-right: auto !important; 
    }
}

main {
    flex-grow: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

section {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.hidden-section {
    display: none;
}

.active-section {
    display: block;
}


#job-listings-section h2 {
    text-align: center;
    color: #183153;
    margin-bottom: 2rem;
    font-size: 2rem;
}

#filters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 8px;
}

#filters label {
    margin-right: 10px;
    font-weight: bold;
    color: #555;
}

#filters select {
    padding: 0.6rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

#filters select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#job-listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.job-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.job-card h3 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card p {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.job-card .excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-top: auto;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

#loading-indicator {
    text-align: center;
    grid-column: 1 / -1;
    color: #666;
    padding: 3rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}


#job-details-section h2 {
    color: #183153;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

#job-details-section .back-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

#job-details-section .back-button:hover {
    background-color: #5a6268;
}

#job-detail-content {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

#job-detail-content p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 1rem;
}

#job-detail-content .detail-label {
    font-weight: 600;
    color: #444;
}

#job-detail-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

#job-detail-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

#job-detail-content ul li {
    margin-bottom: 0.5rem;
}

#job-detail-content .apply-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#job-detail-content .apply-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}



#post-job-section h2 {
    text-align: center;
    color: #183153;
    margin-bottom: 2rem;
    font-size: 2rem;
}

#job-post-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: bold;
    color: #444;
}

#job-post-form input[type="text"],
#job-post-form input[type="number"],
#job-post-form input[type="url"],
#job-post-form textarea,
#job-post-form select {
    width: calc(100% - 22px);
    padding: 12px;
    margin-bottom: 1.2rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

#job-post-form textarea {
    resize: vertical;
    min-height: 80px;
}

#job-post-form input:focus,
#job-post-form textarea:focus,
#job-post-form select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#job-post-form .salary-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

#job-post-form .salary-inputs label,
#job-post-form .salary-inputs input {
    flex: 1;
    margin-bottom: 0;
}
#job-post-form .salary-inputs input {
    width: auto;
}


#job-post-form button[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

#job-post-form button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.message-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-box.active {
    opacity: 1;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer Styling */
footer {
    background-color: #343a40;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* About Section Styling */
#about-section {
    background: linear-gradient(135deg, #f0f2f5 60%, #d1d5db 100%);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    text-align: center;
}

#about-section h2 {
    color: #183153;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

#about-section p {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}


.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.badge-type {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.badge-level {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-skill {
    background-color: #f5f5f5;
    color: #495057;
    border: 1px solid #dee2e6;
    margin: 0.2rem;
    font-size: 0.7rem;
}

/* Company cards */
.company-card {
    transition: transform 0.2s ease;
}

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

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Company logo styles */
.company-logo {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background-color: #fff;
    padding: 4px;
}

.company-logo-detail {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    padding: 8px;
}

.job-detail-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.company-name-detail {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Loading and error states */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved job card hover effects */
.job-card {
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.05), transparent);
    transition: left 0.6s ease;
}

.job-card:hover::before {
    left: 100%;
}

/* Equal height cards */
#job-listings-container .job-card {
    align-self: stretch;
}

/* Salary display styling */
.salary-range {
    font-weight: 600;
    color: #28a745;
}

/* Skills container */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
    min-height: 30px;
    align-items: flex-start;
}

/* Responsive grid adjustments */
@media (min-width: 1200px) {
    #job-listings-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #job-listings-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    #job-listings-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .job-card {
        min-height: 260px;
    }
}

/* Card header styling */
.job-card .card-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.job-card .card-header h3 {
    margin-bottom: 0.25rem;
    color: #007bff;
}

.job-card .card-header small {
    color: #6c757d;
    font-weight: 500;
}

/* Card body styling */
.job-card .card-body {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Job meta styling */
.job-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    min-height: 80px;
}

/* Ensure consistent card heights */
.job-card {
    display: flex;
    flex-direction: column;
}

.job-card .excerpt {
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Icon styling */
.ri-map-pin-line {
    font-size: 0.9rem;
}

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

.job-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Loading state improvements */
.loading-spinner {
    margin: 0 auto;
}

/* Grid improvements */
#job-listings-container {
    align-items: stretch;
}

#job-listings-container > * {
    height: 100%;
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
    #job-listings-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .job-card {
        padding: 1.25rem;
        min-height: 250px;
    }
    
    .job-card h3 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #filters {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    #filters label {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .company-logo {
        max-height: 40px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .job-card {
        padding: 1rem;
        min-height: 220px;
    }
    
    .job-card h3 {
        font-size: 1.1rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}
