/* GDPR Cookie Consent Plugin Styles */

/*
 * Theme Integration - Using DownTownSounds Theme Colors
 * 
 * This plugin is now integrated with your theme's color system and uses the following
 * values from /sass/abstracts/_variables.scss as fallbacks:
 *
 * Theme Colors Used:
 * - Primary Blue: #2f277d ($color-primary) - tabs, switches, links
 * - Accent Green: #40e337 ($color-accent) - primary buttons, call-to-action
 * - Text: #555555 ($color-text) - main content text
 * - Text Muted: #6c757d ($color-text-muted) - secondary text
 * - Background Light: #f8f9fa ($color-bg-light) - light backgrounds
 * - Border Light: #dee2e6 ($color-border-light) - borders, dividers
 * - Border: #adb5bd ($color-border) - form elements, switches
 * - Success: #155724 ($color-success) - required badges
 * - Typography: System font stack ($font-base)
 * - Line Height: 1.5 ($line-height-base)
 * - Shadow: 0 8px 20px rgba(0,0,0,0.2) ($shadow-lg)
 *
 * All colors can still be customized by defining CSS custom properties in your theme:
 * 
 * Component-specific Variables:
 * --gdpr-banner-bg: Banner background (default: rgba(47, 39, 125, 0.95))
 * --gdpr-btn-primary-bg: Primary button background (default: #40e337)
 * --gdpr-switch-active-bg: Active toggle switch (default: #2f277d)
 * --gdpr-modal-bg: Modal background (default: #ffffff)
 * --gdpr-font-family: Font family (default: theme system font stack)
 * 
 * Plus 50+ additional customization properties throughout the file.
 */

/* Banner Styles */
.gdpr-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gdpr-banner-bg, rgba(47, 39, 125, 0.95)); /* Using $color-primary with transparency */
    color: var(--gdpr-banner-color, #ffffff);
    padding: 1.25rem;
    z-index: 999999;
    box-shadow: var(--gdpr-banner-shadow, 0 -2px 10px rgba(0, 0, 0, 0.2));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.gdpr-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: var(--gdpr-heading-size, 1.125rem);
    font-weight: var(--gdpr-heading-weight, 600);
    color: var(--gdpr-heading-color, #ffffff);
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

.gdpr-consent-text p {
    margin: 0;
    font-size: var(--gdpr-text-size, 0.875rem);
    opacity: var(--gdpr-text-opacity, 0.9);
    line-height: var(--gdpr-line-height, 1.5); /* Using theme's line-height-base */
    color: var(--gdpr-text-color, #ffffff);
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

.gdpr-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.gdpr-close-btn {
    position: absolute;
    top: 0.9375rem;
    right: 0.9375rem;
    background: none;
    border: none;
    color: var(--gdpr-close-color, #ffffff);
    font-size: var(--gdpr-close-size, 1.5rem);
    cursor: pointer;
    padding: 0;
    width: 1.875rem;
    height: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: var(--gdpr-close-opacity, 0.7);
    transition: opacity 0.2s ease;
}

.gdpr-close-btn:hover {
    opacity: 1;
}

/* Button Styles */
.gdpr-btn {
    padding: var(--gdpr-btn-padding, 0.625rem 1.25rem);
    border: var(--gdpr-btn-border, none);
    border-radius: var(--gdpr-btn-radius, 0.375rem);
    cursor: pointer;
    font-size: var(--gdpr-btn-size, 0.875rem);
    font-weight: var(--gdpr-btn-weight, 500);
    font-family: var(--gdpr-btn-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
    line-height: var(--gdpr-btn-line-height, 1.5);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.gdpr-btn-primary {
    background: var(--gdpr-btn-primary-bg, #64e337); /* Using $color-accent (green) for primary action */
    color: var(--gdpr-btn-primary-color, #000000);
    border: var(--gdpr-btn-primary-border, none);
}

.gdpr-btn-primary:hover {
    background: var(--gdpr-btn-primary-hover-bg, #40e337); /* Slightly darker green */
    color: var(--gdpr-btn-primary-hover-color, #000000);
}

.gdpr-btn-secondary {
    background: var(--gdpr-btn-secondary-bg, transparent);
    color: var(--gdpr-btn-secondary-color, #ffffff);
    border: var(--gdpr-btn-secondary-border, 1px solid rgba(255, 255, 255, 0.3));
}

.gdpr-btn-secondary:hover {
    background: var(--gdpr-btn-secondary-hover-bg, rgba(255, 255, 255, 0.1));
    color: var(--gdpr-btn-secondary-hover-color, #ffffff);
}

.gdpr-btn-link {
    background: transparent;
    color: var(--gdpr-btn-link-color, #ffffff);
    text-decoration: var(--gdpr-btn-link-decoration, underline);
    padding: var(--gdpr-btn-link-padding, 0.625rem 0);
    border: none;
}

.gdpr-btn-link:hover {
    opacity: var(--gdpr-btn-link-hover-opacity, 0.8);
}

/* Modal Styles */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gdpr-modal-overlay, rgba(0, 0, 0, 0.8));
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gdpr-modal.gdpr-show {
    opacity: 1;
    visibility: visible;
}

.gdpr-modal-content {
    background: var(--gdpr-modal-bg, #ffffff);
    border-radius: var(--gdpr-modal-radius, 0.5rem);
    border: var(--gdpr-modal-border, none);
    box-shadow: var(--gdpr-modal-shadow, 0 8px 20px rgba(0, 0, 0, 0.2)); /* Using $shadow-lg */
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gdpr-modal.gdpr-show .gdpr-modal-content {
    transform: scale(1);
}

.gdpr-modal-header {
    padding: 1.25rem;
    border-bottom: var(--gdpr-modal-header-border, 1px solid #dee2e6); /* Using $color-border-light */
    position: relative;
}

.gdpr-modal-header h2 {
    margin: 0;
    font-size: var(--gdpr-modal-title-size, 1.25rem);
    font-weight: var(--gdpr-modal-title-weight, 600);
    color: var(--gdpr-modal-title-color, #555555); /* Using $color-text */
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

/* Tab Styles */
.gdpr-tabs {
    display: flex;
    border-bottom: var(--gdpr-tab-border, 1px solid #dee2e6); /* Using $color-border-light */
    background: var(--gdpr-tab-bg, #f8f9fa); /* Using $color-bg-light */
}

.gdpr-tab-btn {
    flex: 1;
    padding: 0.9375rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: var(--gdpr-tab-size, 0.875rem);
    font-weight: var(--gdpr-tab-weight, 500);
    font-family: var(--gdpr-tab-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
    color: var(--gdpr-tab-color, #6c757d); /* Using $color-text-muted */
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.gdpr-tab-btn:hover {
    color: var(--gdpr-tab-hover-color, #555555); /* Using $color-text */
    background: var(--gdpr-tab-hover-bg, rgba(47, 39, 125, 0.05)); /* Using $color-primary with transparency */
}

.gdpr-tab-btn.gdpr-tab-active {
    color: var(--gdpr-tab-active-color, #2f277d); /* Using $color-primary */
    border-bottom-color: var(--gdpr-tab-active-border, #2f277d); /* Using $color-primary */
    background: var(--gdpr-tab-active-bg, #ffffff);
}

.gdpr-tab-content {
    display: none;
}

.gdpr-tab-content.gdpr-tab-active {
    display: block;
}

.gdpr-modal-body {
    padding: 1.25rem;
}

.gdpr-modal-footer {
    padding: 1.25rem;
    border-top: var(--gdpr-modal-footer-border, 1px solid #dee2e6); /* Using $color-border-light */
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Category Styles */
.gdpr-category {
    margin-bottom: 1.25rem;
    padding: 0.9375rem;
    border-bottom: var(--gdpr-category-border, 1px solid #dee2e6); /* Using $color-border-light */
}

.gdpr-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.gdpr-category-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9375rem;
}

.gdpr-category-info h4 {
    margin: 0 0 0.3125rem 0;
    font-size: var(--gdpr-category-title-size, 1rem);
    font-weight: var(--gdpr-category-title-weight, 600);
    color: var(--gdpr-category-title-color, #555555); /* Using $color-text */
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

.gdpr-category-info p {
    margin: 0;
    font-size: var(--gdpr-category-desc-size, 0.875rem);
    color: var(--gdpr-category-desc-color, #6c757d); /* Using $color-text-muted */
    line-height: var(--gdpr-line-height, 1.5);
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

/* Required category styles */
.gdpr-category-required {
    background: var(--gdpr-required-bg, #f8f9fa); /* Using $color-bg-light */
    border-radius: var(--gdpr-required-radius, 0.25rem);
    border: var(--gdpr-required-border, none);
    padding: 0.9375rem;
}

.gdpr-required-badge {
    background: var(--gdpr-badge-bg, #155724); /* Using $color-success */
    color: var(--gdpr-badge-color, #ffffff);
    font-size: var(--gdpr-badge-size, 0.6875rem);
    padding: var(--gdpr-badge-padding, 0.125rem 0.375rem);
    border-radius: var(--gdpr-badge-radius, 0.1875rem);
    font-weight: var(--gdpr-badge-weight, normal);
    margin-left: 0.5rem;
}

.gdpr-category-count {
    font-size: var(--gdpr-count-size, 0.75rem);
    color: var(--gdpr-count-color, #6c757d); /* Using $color-text-muted */
    font-weight: var(--gdpr-count-weight, normal);
}

/* Radio button category actions */
.gdpr-category-actions {
    margin-top: 0.9375rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.gdpr-radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: var(--gdpr-radio-border, 1px solid #dee2e6); /* Using $color-border-light */
    border-radius: var(--gdpr-radio-radius, 0.25rem);
    background: var(--gdpr-radio-bg, #ffffff);
    transition: all 0.2s ease;
    min-width: 8.75rem;
}

.gdpr-radio-option:hover {
    border-color: var(--gdpr-radio-hover-border, #2f277d); /* Using $color-primary */
    background: var(--gdpr-radio-hover-bg, #f8f9fa); /* Using $color-bg-light */
}

.gdpr-radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.gdpr-radio-label {
    font-size: var(--gdpr-radio-label-size, 0.875rem);
    color: var(--gdpr-radio-label-color, #555555); /* Using $color-text */
    cursor: pointer;
    user-select: none;
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

/* Service Styles */
.gdpr-service {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: var(--gdpr-service-border, 1px solid #dee2e6); /* Using $color-border-light */
}

.gdpr-service:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.gdpr-service-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9375rem;
}

.gdpr-service-info h4 {
    margin: 0 0 0.3125rem 0;
    font-size: var(--gdpr-service-title-size, 1rem);
    font-weight: var(--gdpr-service-title-weight, 600);
    color: var(--gdpr-service-title-color, #555555); /* Using $color-text */
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

.gdpr-service-info p {
    margin: 0 0 0.5rem 0;
    font-size: var(--gdpr-service-desc-size, 0.875rem);
    color: var(--gdpr-service-desc-color, #6c757d); /* Using $color-text-muted */
    line-height: var(--gdpr-line-height, 1.5);
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

.gdpr-service-category {
    font-size: var(--gdpr-service-meta-size, 0.75rem);
    color: var(--gdpr-service-meta-color, #6c757d); /* Using $color-text-muted */
    font-style: var(--gdpr-service-meta-style, italic);
}

.gdpr-no-services {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.gdpr-no-services p {
    margin: 0;
    font-style: italic;
}

/* Toggle Switch Styles */
.gdpr-switch {
    position: relative;
    display: inline-block;
    width: var(--gdpr-switch-width, 3.125rem);
    height: var(--gdpr-switch-height, 1.75rem);
    flex-shrink: 0;
}

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

.gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gdpr-switch-bg, #adb5bd); /* Using $color-border */
    transition: var(--gdpr-switch-transition, 0.3s);
    border-radius: var(--gdpr-switch-radius, 1.75rem);
}

.gdpr-slider:before {
    position: absolute;
    content: "";
    height: var(--gdpr-switch-thumb-size, 1.375rem);
    width: var(--gdpr-switch-thumb-size, 1.375rem);
    left: var(--gdpr-switch-thumb-offset, 0.1875rem);
    bottom: var(--gdpr-switch-thumb-offset, 0.1875rem);
    background-color: var(--gdpr-switch-thumb-color, #ffffff);
    transition: var(--gdpr-switch-transition, 0.3s);
    border-radius: 50%;
}

input:checked + .gdpr-slider {
    background-color: var(--gdpr-switch-active-bg, #2f277d); /* Using $color-primary */
}

input:checked + .gdpr-slider:before {
    transform: translateX(var(--gdpr-switch-thumb-travel, 1.375rem));
}

input:disabled + .gdpr-slider {
    opacity: var(--gdpr-switch-disabled-opacity, 0.6);
    cursor: not-allowed;
}

/* Blocked Content Styles */
.gdpr-blocked-content {
    background: var(--gdpr-blocked-bg, #f8f9fa); /* Using $color-bg-light */
    border: var(--gdpr-blocked-border, 2px dashed #dee2e6); /* Using $color-border-light */
    border-radius: var(--gdpr-blocked-radius, 0.5rem);
    padding: var(--gdpr-blocked-padding, 2.5rem 1.25rem);
    text-align: center;
    margin: var(--gdpr-blocked-margin, 1.25rem 0);
    position: relative;
}

.gdpr-blocked-content-inner {
    max-width: 25rem;
    margin: 0 auto;
}

.gdpr-blocked-icon {
    font-size: var(--gdpr-blocked-icon-size, 3rem);
    margin-bottom: 0.9375rem;
    opacity: var(--gdpr-blocked-icon-opacity, 0.6);
}

.gdpr-blocked-text h4 {
    margin: 0 0 0.625rem 0;
    font-size: var(--gdpr-blocked-title-size, 1.125rem);
    font-weight: var(--gdpr-blocked-title-weight, 600);
    color: var(--gdpr-blocked-title-color, #555555); /* Using $color-text */
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

.gdpr-blocked-text p {
    margin: 0 0 1.25rem 0;
    color: var(--gdpr-blocked-text-color, #6c757d); /* Using $color-text-muted */
    font-size: var(--gdpr-blocked-text-size, 0.875rem);
    line-height: var(--gdpr-line-height, 1.5);
    font-family: var(--gdpr-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
}

.gdpr-allow-service {
    background: var(--gdpr-allow-btn-bg, #40e337); /* Using $color-accent (green) for call-to-action */
    color: var(--gdpr-allow-btn-color, #000000);
    border: var(--gdpr-allow-btn-border, none);
    padding: var(--gdpr-allow-btn-padding, 0.75rem 1.5rem);
    border-radius: var(--gdpr-allow-btn-radius, 0.375rem);
    font-size: var(--gdpr-allow-btn-size, 0.875rem);
    font-weight: var(--gdpr-allow-btn-weight, 500);
    font-family: var(--gdpr-allow-btn-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
    cursor: pointer;
    transition: background 0.2s ease;
}

.gdpr-allow-service:hover {
    background: var(--gdpr-allow-btn-hover-bg, #64e337); /* Slightly lighter green for hover */
}

/* Footer Link */
.gdpr-footer-link {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 999998;
}

.gdpr-footer-link a {
    background: var(--gdpr-footer-link-bg, rgba(0, 0, 0, 0.8));
    color: var(--gdpr-footer-link-color, var(--color-surface, #fff));
    padding: var(--gdpr-footer-link-padding, 0.5rem 0.75rem);
    border-radius: var(--gdpr-footer-link-radius, 0.25rem);
    border: var(--gdpr-footer-link-border, none);
    font-size: var(--gdpr-footer-link-size, 0.75rem);
    font-family: var(--gdpr-footer-link-font, inherit);
    text-decoration: none;
    transition: background 0.2s ease;
}

.gdpr-footer-link a:hover {
    background: var(--gdpr-footer-link-hover-bg, rgba(0, 0, 0, 0.9));
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9375rem;
    }
    
    .gdpr-consent-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .gdpr-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .gdpr-btn-link {
        flex: 100%;
        margin-top: 0.625rem;
    }
    
    .gdpr-modal-content {
        width: 95%;
        margin: 1.25rem;
    }
    
    .gdpr-modal-footer {
        flex-direction: column;
    }
    
    .gdpr-modal-footer .gdpr-btn {
        width: 100%;
    }
    
    .gdpr-category-header {
        gap: 0.75rem;
    }
    
    .gdpr-blocked-content {
        padding: 1.875rem 0.9375rem;
    }
    
    .gdpr-footer-link {
        bottom: 0.625rem;
        right: 0.625rem;
    }
}

/* Animation for content loading */
.gdpr-blocked-content.gdpr-loading {
    opacity: var(--gdpr-loading-opacity, 0.7);
    pointer-events: none;
}

.gdpr-blocked-content.gdpr-loading .gdpr-allow-service {
    background: var(--gdpr-loading-btn-bg, #adb5bd); /* Using $color-border */
    cursor: not-allowed;
}

/* Hide banner when audio player is present (optional future enhancement) */
.has-audio-player .gdpr-consent-banner {
    bottom: var(--gdpr-audio-player-offset, 3.75rem); /* Adjust based on audio player height */
}

/* Dark Mode Override - Force Light Theme for Modal */
/* This ensures the modal always uses light colors even in dark mode */
body.dark-mode .gdpr-modal-content {
    background: #ffffff !important;
    color: #555555 !important;
}

body.dark-mode .gdpr-modal-header {
    border-bottom: 1px solid #dee2e6 !important;
}

body.dark-mode .gdpr-modal-header h2 {
    color: #555555 !important;
}

body.dark-mode .gdpr-tabs {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

body.dark-mode .gdpr-tab-btn {
    color: #6c757d !important;
}

body.dark-mode .gdpr-tab-btn:hover {
    color: #555555 !important;
    background: rgba(47, 39, 125, 0.05) !important;
}

body.dark-mode .gdpr-tab-btn.gdpr-tab-active {
    color: #2f277d !important;
    border-bottom-color: #2f277d !important;
    background: #ffffff !important;
}

body.dark-mode .gdpr-category-info h4,
body.dark-mode .gdpr-service-info h4,
body.dark-mode .gdpr-service-info h3,
body.dark-mode .gdpr-category-info h3 {
    color: #555555 !important;
}

/* Extra specificity to override theme h3 styles */
body.dark-mode .gdpr-modal .gdpr-service-info h3,
body.dark-mode .gdpr-modal .gdpr-category-info h3 {
    color: #555555 !important;
}

body.dark-mode .gdpr-category-info p,
body.dark-mode .gdpr-service-info p {
    color: #6c757d !important;
}

body.dark-mode .gdpr-service-category,
body.dark-mode .gdpr-category-count {
    color: #6c757d !important;
}

body.dark-mode .gdpr-radio-label {
    color: #555555 !important;
}

body.dark-mode .gdpr-modal-footer {
    border-top: 1px solid #dee2e6 !important;
}

body.dark-mode .gdpr-category {
    border-bottom: 1px solid #dee2e6 !important;
}

body.dark-mode .gdpr-service {
    border-bottom: 1px solid #dee2e6 !important;
}

body.dark-mode .gdpr-category-required {
    background: #30363d !important;
}

body.dark-mode .gdpr-radio-option {
    border: 1px solid #dee2e6 !important;
    color: #555555 !important;
}

body.dark-mode .gdpr-radio-option:hover {
    border-color: #2f277d !important;
    /*background: #f8f9fa !important;*/
}

body.dark-mode.gdpr-close-btn {
    color: #555555 !important;
}

body.dark-mode .gdpr-radio-option input[type="radio"]:focus {
    outline: 3px solid #10b981 !important;
}

/* Improved toggle switch visibility (applies to both light and dark modes) */
.gdpr-slider {
    background-color: #cccccc !important; /* Light gray for off state */
    border: 2px solid #999999 !important; /* Border for definition */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important; /* Inner shadow for depth */
}

input:checked + .gdpr-slider {
    background-color: #10b981 !important; /* Bright green for on state */
    border: 2px solid #0d9668 !important; /* Darker green border */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important; /* Green glow */
}

.gdpr-slider:before {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Shadow on thumb for depth */
}

input:disabled + .gdpr-slider {
    background-color: #e5e5e5 !important;
    border-color: #cccccc !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Additional enhancement: Add transition effects */
.gdpr-slider {
    transition: all 0.3s ease !important;
}

.gdpr-slider:before {
    transition: transform 0.3s ease, box-shadow 0.2s ease !important;
}

/* Hover state for better interactivity */
.gdpr-switch:hover .gdpr-slider:not(input:disabled + .gdpr-slider) {
    border-color: #777777 !important;
}

.gdpr-switch:hover input:checked + .gdpr-slider {
    border-color: #0a7c52 !important;
}

body.dark-mode .gdpr-slider {
    border-color: #666 !important;
}
