/* Cookie Consent Banner Styling */
#cookie-banner {
    display: none; /* Initially hidden - JavaScript will show if needed */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2e2e2e;
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: Arial, Helvetica, sans-serif;
}

#cookie-banner .banner-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

#cookie-banner p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

#cookie-banner a {
    color: #5fa8c9;
    text-decoration: underline;
}

#cookie-banner a:hover {
    color: #7fc0e0;
}

#cookie-banner .button-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#cookie-banner button {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#cookie-banner .btn-accept {
    background-color: #2f6f8f;
    color: #ffffff;
}

#cookie-banner .btn-accept:hover {
    background-color: #245a73;
}

#cookie-banner .btn-decline {
    background-color: #6b6b6b;
    color: #ffffff;
}

#cookie-banner .btn-decline:hover {
    background-color: #555555;
}

#cookie-banner .btn-settings {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

#cookie-banner .btn-settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#cookie-banner button:focus {
    outline: 3px solid #5fa8c9;
    outline-offset: 2px;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow-y: auto;
}

#cookie-settings-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #2f6f8f;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
    color: #2b2b2b;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category h3 {
    color: #2f6f8f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.cookie-toggle label {
    font-weight: bold;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

.toggle-switch input:checked + .toggle-slider {
    background-color: #2f6f8f;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch input:disabled + .toggle-slider {
    background-color: #2f6f8f;
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-footer button {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
}

.btn-save {
    background-color: #2f6f8f;
    color: #ffffff;
}

.btn-save:hover {
    background-color: #245a73;
}

.btn-cancel {
    background-color: #e5e7eb;
    color: #2b2b2b;
}

.btn-cancel:hover {
    background-color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 1rem;
    }

    #cookie-banner .button-group {
        flex-direction: column;
        width: 100%;
    }

    #cookie-banner button {
        width: 100%;
    }

    .modal-content {
        margin: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

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