/* GDPR Cookie Consent Banner */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #685d5d;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#cookieConsent.show {
    transform: translateY(0);
}

#cookieConsent .cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#cookieConsent .cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

#cookieConsent .cookie-content {
    flex: 1;
    min-width: 300px;
}

#cookieConsent .cookie-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

#cookieConsent .cookie-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ecf0f1;
    margin: 0;
}

#cookieConsent .cookie-text a {
    color: #3B7DDD;
    text-decoration: underline;
    transition: color 0.2s;
}

#cookieConsent .cookie-text a:hover {
    color: #2a5ea8;
}

#cookieConsent .cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#cookieConsent .cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#cookieConsent .cookie-btn-accept {
    background: #3B7DDD;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 125, 221, 0.4);
}

#cookieConsent .cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 125, 221, 0.6);
}

#cookieConsent .cookie-btn-settings {
    background: #495057;
    color: #ffffff;
    border: 2px solid #6c757d;
}

#cookieConsent .cookie-btn-settings:hover {
    background: #6c757d;
    border-color: #6c757d;
}

#cookieConsent .cookie-btn-decline {
    background: transparent;
    color: #ecf0f1;
    border: 2px solid #6c757d;
}

#cookieConsent .cookie-btn-decline:hover {
    background: transparent;
    border-color: #6c757d;
}

/* Cookie Settings Modal */
#cookieSettingsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
}

#cookieSettingsModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-header {
    padding: 24px;
    border-bottom: 2px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-settings-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.cookie-settings-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ecf0f1;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6c757d;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #3B7DDD;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-settings-footer {
    padding: 20px 24px;
    border-top: 2px solid #ecf0f1;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-settings-footer .cookie-btn {
    padding: 10px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookieConsent .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    #cookieConsent .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    #cookieConsent .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-settings-content {
        margin: 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}

/* Cookie badge for reopening settings */
#cookieSettingsBadge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #3B7DDD;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 125, 221, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 1.5rem;
}

#cookieSettingsBadge.show {
    display: flex;
}

#cookieSettingsBadge:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(59, 125, 221, 0.6);
}
