/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a2e;
    color: #e0e0e0;
    padding: 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none; /* Hidden by default, shown by JS */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 1px solid #4a4ec7;
}

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

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

#cookie-consent-banner h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.2rem;
}

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

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

#cookie-consent-banner button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

#cookie-consent-banner .btn-accept {
    background-color: #4CAF50;
    color: white;
}

#cookie-consent-banner .btn-accept:hover {
    background-color: #45a049;
}

#cookie-consent-banner .btn-reject {
    background-color: #f44336;
    color: white;
}

#cookie-consent-banner .btn-reject:hover {
    background-color: #e53935;
}

#cookie-consent-banner .btn-settings {
    background-color: #555;
    color: white;
    text-decoration: underline;
}

#cookie-consent-banner .btn-settings:hover {
    background-color: #666;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

#cookie-settings-modal .modal-content {
    background-color: #1a1a2e;
    color: #e0e0e0;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #4a4ec7;
    position: relative;
}

#cookie-settings-modal h2 {
    margin-top: 0;
    color: #fff;
}

#cookie-settings-modal .cookie-option {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

#cookie-settings-modal .cookie-option:last-child {
    border-bottom: none;
}

#cookie-settings-modal .option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

#cookie-settings-modal .option-header label {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
}

#cookie-settings-modal .option-desc {
    font-size: 0.9em;
    color: #aaa;
}

#cookie-settings-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

#cookie-settings-modal .btn-save {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#cookie-settings-modal .btn-close-modal {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #aaa;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

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

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

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

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

input:checked + .slider {
    background-color: #4CAF50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

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

input:disabled + .slider {
    background-color: #555;
    cursor: not-allowed;
}
