/* Cookie Consent Banner Styles */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
}

#cookie-consent-banner.show {
    display: block;
}

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

#cookie-consent-banner .consent-text {
    flex: 1;
    min-width: 300px;
    font-size: 14px;
    line-height: 1.4;
}

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

#cookie-consent-banner button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

#cookie-consent-banner button:hover {
    opacity: 0.9;
}

#cookie-consent-banner .btn-accept {
    background-color: #28a745;
    color: white;
}

#cookie-consent-banner .btn-settings {
    background-color: #6c757d;
    color: white;
}

#cookie-consent-banner .btn-decline {
    background-color: #dc3545;
    color: white;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#cookie-settings-modal .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#cookie-settings-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#cookie-settings-modal .modal-header h3 {
    margin: 0;
    color: #333;
}

#cookie-settings-modal .close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

#cookie-settings-modal .close:hover {
    color: #000;
}

#cookie-settings-modal .cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

#cookie-settings-modal .cookie-category h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

#cookie-settings-modal .cookie-category p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

#cookie-settings-modal .cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cookie-settings-modal .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

#cookie-settings-modal .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#cookie-settings-modal .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

#cookie-settings-modal .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

#cookie-settings-modal input:checked + .slider {
    background-color: #28a745;
}

#cookie-settings-modal input:checked + .slider:before {
    transform: translateX(26px);
}

#cookie-settings-modal input:disabled + .slider {
    background-color: #28a745;
    opacity: 0.6;
}

#cookie-settings-modal .modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#cookie-settings-modal .modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#cookie-settings-modal .btn-save {
    background-color: #007bff;
    color: white;
}

#cookie-settings-modal .btn-cancel {
    background-color: #6c757d;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookie-consent-banner .consent-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #cookie-consent-banner .consent-buttons {
        justify-content: center;
    }

    #cookie-settings-modal .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    #cookie-settings-modal .modal-footer {
        flex-direction: column;
    }

    #cookie-settings-modal .modal-footer button {
        width: 100%;
    }
}