/* Cookie Consent and Postuler Button Styles */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --accent-color: #ff6b35;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-color: #dee2e6;
}

/* Navbar Brand Logo */
.navbar-brand img {
    height: 70px !important;
    width: auto !important;
    display: block !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
}

/* Fixed Header Styles */
#newsBar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
}

nav.navbar {
    position: fixed !important;
    top: 50px !important; /* Below news bar */
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Add space for fixed header on pages that need it */
body {
    padding-top: 120px !important; /* News bar + navbar height */
}

/* Postuler Button */
.btn-postuler {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8a50 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-postuler:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.btn-postuler i {
    margin-right: 8px;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #343a40 100%);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    margin-bottom: 10px;
    color: white;
    font-size: 18px;
}

.cookie-consent-text p {
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-categories {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.cookie-category {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-icon {
    margin-right: 10px;
    color: var(--success-color);
}

.cookie-category-name {
    font-weight: 600;
    margin-right: 10px;
}

.cookie-category-desc {
    opacity: 0.8;
    font-size: 14px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cookie-accept {
    background: var(--success-color);
    color: white;
}

.btn-cookie-accept:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

.btn-cookie-refuse {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cookie-refuse:hover {
    background: white;
    color: var(--dark-bg);
    text-decoration: none;
}

.btn-cookie-settings {
    background: transparent;
    color: white;
    text-decoration: underline;
}

.btn-cookie-settings:hover {
    color: var(--light-bg);
    text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-settings-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: var(--light-bg);
    color: var(--dark-bg);
}

.cookie-category-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-weight: 600;
    color: var(--primary-color);
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.active {
    background: var(--success-color);
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(26px);
}

.cookie-category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .btn-cookie {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-settings-content {
        padding: 20px;
        margin: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Postuler Button in Navbar */
.navbar-nav .btn-postuler {
    margin-left: 1px;
    margin-right: 0;
}

/* Ensure Postuler button stands out in mobile menu */
/* Mobile responsive styles for navbar */
@media (max-width: 991px) {
    .navbar-nav .btn-postuler {
        margin: 8px 10px !important;
        width: auto !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        min-height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        min-width: 120px !important;
    }
    
    .navbar-nav .btn-postuler i {
        font-size: 12px !important;
        margin-right: 6px !important;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .navbar-nav .nav-link.btn-postuler {
        padding: 8px 12px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        margin: 6px 8px !important;
        min-height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        min-width: 110px !important;
    }
    
    .navbar-nav .nav-link.btn-postuler i {
        font-size: 11px !important;
        margin-right: 4px !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .navbar-nav .nav-link.btn-postuler {
        padding: 7px 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        margin: 5px 6px !important;
        min-height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        min-width: 100px !important;
    }
    
    .navbar-nav .nav-link.btn-postuler i {
        font-size: 10px !important;
        margin-right: 3px !important;
    }
}

/* Ultra small screens */
@media (max-width: 360px) {
    .navbar-nav .nav-link.btn-postuler {
        padding: 6px 8px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        margin: 4px 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        min-width: 90px !important;
    }
    
    .navbar-nav .nav-link.btn-postuler i {
        font-size: 9px !important;
        margin-right: 2px !important;
    }
}

/* Add to existing navbar styles */
.navbar-nav .nav-link.btn-postuler {
    color: white !important;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8a50 100%);
    border-radius: 8px;
    padding: 3px 8px;
    margin: 5px 6px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.navbar-nav .nav-link.btn-postuler:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

.navbar-nav .nav-link.btn-postuler i {
    font-size: 9px;
    margin-right: 2px;
}
