/**
 * Cookie Consent Manager Styles
 * GDPR-compliant cookie consent banner and preferences modal
 */

/* Website Blocking Overlay - Prevents interaction until consent */
.cookie-blocking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    pointer-events: all;
}

.cookie-blocking-overlay.active {
    display: block;
}

/* Blur effect for website content when cookie banner is shown */
body.cookie-consent-required {
    overflow: hidden;
}

body.cookie-consent-required .cookie-blocking-overlay {
    display: block;
}

/* Exclude cookie banner and modal from blocking effects */
body.cookie-consent-required > *:not(.cookie-consent-banner):not(.cookie-blocking-overlay):not(.cookie-preferences-modal) {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

/* Cookie Banner Styles - Classic Bottom Banner Style */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    background: #fff;
    border-top: 3px solid #a571aa;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
    transition: transform 1.5s ease;
    -webkit-transition: -webkit-transform 1.5s ease;
    font-family: 'Jost', sans-serif;
    pointer-events: all;
}

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

.cookie-popup-content {
    padding: 25px 30px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.cookie-banner-text {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    padding-right: 20px;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.cookie-privacy-link {
    margin-top: 10px !important;
    font-size: 13px !important;
}

.cookie-privacy-link a {
    color: #a571aa;
    text-decoration: none;
    font-weight: 500;
}

.cookie-privacy-link a:hover {
    text-decoration: underline;
    color: #769757;
}

.cookie-banner-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.cookie-banner-actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 12px;
}

.cookie-banner-actions button:first-child {
    margin-left: 0;
}

.cookie-banner-actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-accept-all {
    background: #769757;
    color: white;
}

.btn-cookie-accept-all:hover {
    background: #5a7a42;
    transform: translateY(-1px);
}

.btn-cookie-reject-all {
    background: #6c757d;
    color: white;
}

.btn-cookie-reject-all:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-cookie-settings {
    background: #a571aa;
    color: white;
    border: 2px solid #a571aa;
}

.btn-cookie-settings:hover {
    background: #946299;
    color: white;
    transform: translateY(-1px);
}

/* Cookie Preferences Modal - Classic Popup Style */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
    pointer-events: all;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

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

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

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

.cookie-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    min-height: 60px;
    position: relative;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding-right: 50px;
    flex: 1;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.cookie-modal-close:hover {
    /* background: #e9ecef; */
    color: #333;
}

.cookie-modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-modal-body > p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-category {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #a571aa;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    order: 2;
}

.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: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #769757;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: #769757;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category-info {
    flex: 1;
    order: 1;
}

.cookie-category-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cookie-category-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

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

.cookie-modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-save {
    background: #769757;
    color: white;
}

.btn-cookie-save:hover {
    background: #5a7a42;
}

/* Data retention information styles */
.cookie-data-info {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #a571aa;
}

.cookie-data-info h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.cookie-data-info ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.cookie-data-info li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.cookie-data-info li strong {
    color: #333;
}

.data-contact {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.data-contact a {
    color: #a571aa;
    text-decoration: none;
    font-weight: 500;
}

.data-contact a:hover {
    text-decoration: underline;
    color: #769757;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-popup-content {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .cookie-banner-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-banner-text h3 {
        font-size: 18px;
        text-align: center;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
        text-align: center;
    }
    
    .cookie-privacy-link {
        text-align: center;
    }
    
    .cookie-banner-actions {
        width: 100%;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .cookie-banner-actions button {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;
        min-width: 120px;
        max-width: 200px;
        margin: 5px;
    }
    
    .cookie-banner-actions button:first-child {
        margin-left: 5px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 15px 20px;
        min-height: 50px;
    }
    
    .cookie-modal-header h2 {
        font-size: 18px;
        padding-right: 45px;
    }
    
    .cookie-modal-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
        right: 12px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal-footer button {
        width: 100%;
    }
    
    .cookie-category-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-toggle {
        order: 2;
        align-self: flex-start;
        margin-top: 0;
    }
    
    .cookie-category-info {
        order: 1;
        flex: 1;
    }
    
    /* Improve modal scrolling on tablets */
    .cookie-modal-body {
        max-height: 60vh;
    }
    
    /* Better spacing for privacy links */
    .privacy-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Improve quick actions layout */
    .quick-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-popup-content {
        padding: 15px;
    }
    
    .cookie-banner-text h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .cookie-banner-text p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-banner-actions button {
        font-size: 13px;
        padding: 12px 16px;
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .cookie-modal-content {
        width: 98%;
        margin: 5px;
        max-height: 95vh;
    }
    
    .cookie-modal-header {
        padding: 12px 15px;
        min-height: 45px;
    }
    
    .cookie-modal-header h2 {
        font-size: 16px;
        padding-right: 40px;
    }
    
    .cookie-modal-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
        right: 10px;
    }
    
    .cookie-modal-body {
        padding: 15px;
        max-height: 70vh;
    }
    
    .cookie-modal-footer {
        padding: 15px;
    }
    
    /* Improve category cards on mobile */
    .cookie-category {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .cookie-category-info h4 {
        font-size: 15px;
    }
    
    .cookie-category-description {
        font-size: 13px;
    }
    
    /* Better toggle positioning */
    .cookie-toggle {
        margin-top: 5px;
    }
    
    /* Improve data info section */
    .cookie-data-info {
        padding: 15px;
        margin-top: 20px;
    }
    
    .cookie-data-info h4 {
        font-size: 15px;
    }
    
    .cookie-data-info li {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* Accessibility Improvements */
.cookie-toggle-wrapper:focus-within .cookie-toggle-switch {
    box-shadow: 0 0 0 3px rgba(165, 113, 170, 0.3);
}

.cookie-consent-banner button:focus {
    outline: 2px solid #a571aa;
    outline-offset: 2px;
}

.cookie-checkbox:focus + .cookie-toggle-switch {
    box-shadow: 0 0 0 3px rgba(165, 113, 170, 0.3);
}

/* Animation for smooth transitions */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top-width: 5px;
    }
    
    .cookie-category {
        border-width: 2px;
    }
    
    .cookie-toggle-slider {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-preferences-modal,
    .cookie-modal-content,
    .cookie-toggle-slider,
    .cookie-toggle-slider:before {
        transition: none;
        -webkit-transition: none;
    }
}

/* Extra small screens and landscape phones */
@media (max-width: 360px) {
    .cookie-popup-content {
        padding: 12px;
    }
    
    .cookie-banner-text h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .cookie-banner-text p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .cookie-banner-actions button {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .cookie-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .cookie-modal-header {
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .cookie-modal-header h2 {
        font-size: 15px;
        padding-right: 35px;
    }
    
    .cookie-modal-close {
        width: 26px;
        height: 26px;
        font-size: 12px;
        right: 8px;
    }
    
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 12px;
    }
    
    .cookie-category {
        padding: 12px;
    }
}

/* Landscape orientation improvements */
@media (max-height: 600px) and (orientation: landscape) {
    .cookie-modal-content {
        max-height: 95vh;
    }
    
    .cookie-modal-body {
        max-height: 60vh;
    }
    
    .cookie-popup-content {
        padding: 15px 20px;
    }
    
    .cookie-banner-text h3 {
        margin-bottom: 5px;
    }
    
    .cookie-banner-actions {
        gap: 10px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .cookie-banner-actions button,
    .cookie-modal-footer button,
    .tab-button {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .cookie-toggle {
        display: flex;
        align-items: center;
    }
    
    .cookie-modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}



.preferences-header {
    padding: 25px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #a571aa, #769757);
    color: white;
    border-radius: 20px 20px 0 0;
}

.preferences-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.preferences-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preferences-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.preferences-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(165, 113, 170, 0.1);
    color: #a571aa;
}

.tab-button.active {
    color: #a571aa;
    border-bottom-color: #a571aa;
    background: white;
}

.preferences-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.tab-content {
    display: none;
    padding: 25px 30px;
    min-height: 400px;
}

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

.preferences-footer {
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
}

.preferences-footer button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preferences-save {
    background: linear-gradient(135deg, #a571aa, #769757);
    color: white;
}

.btn-preferences-save:hover {
    box-shadow: 0 5px 15px rgba(165, 113, 170, 0.3);
}

.btn-preferences-reset {
    background: #6c757d;
    color: white;
}

.btn-preferences-reset:hover {
    background: #5a6268;
}

/* Overview Tab Styles */
.overview-section {
    margin-bottom: 30px;
}

.overview-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.consent-status {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: 500;
    color: #666;
}

.status-value {
    font-weight: 600;
}

.status-value.granted {
    color: #28a745;
}

.status-value.not-granted {
    color: #dc3545;
}

.quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.quick-action-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quick-action-btn.accept-all {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.quick-action-btn.necessary-only {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.quick-action-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.privacy-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.privacy-links a {
    color: #a571aa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-links a:hover {
    color: #769757;
}

/* Categories Tab Styles */
.categories-intro {
    margin-bottom: 25px;
}

.categories-intro h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #a571aa;
    box-shadow: 0 5px 20px rgba(165, 113, 170, 0.1);
}

.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.category-toggle {
    flex-shrink: 0;
    order: 2;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.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: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #a571aa, #769757);
}

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

.toggle-switch input:disabled + .toggle-slider {
    background: linear-gradient(135deg, #a571aa, #769757);
    opacity: 0.7;
    cursor: not-allowed;
}

.category-info {
    flex: 1;
    order: 1;
}

.category-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.category-description {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.category-details {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.details-toggle {
    background: none;
    border: none;
    color: #a571aa;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.details-toggle:hover {
    color: #769757;
}

.category-details-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.scripts-list h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.scripts-list ul {
    margin: 0;
    padding-left: 20px;
}

.scripts-list li {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Details Tab Styles */
.details-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-group {
    margin-bottom: 30px;
}

.detail-group h4 {
    color: #a571aa;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.detail-group p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.third-party-services {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #a571aa;
}

.service-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.service-item p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.service-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #dc3545;
    color: white;
    font-weight: 500;
}

.service-status.active {
    background: #28a745;
}

/* History Tab Styles */
.history-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.history-timeline {
    margin-bottom: 30px;
}

.history-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #a571aa;
}

.history-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    min-width: 150px;
}

.history-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.history-content p {
    margin: 0 0 10px 0;
    color: #666;
}

.history-content ul {
    margin: 0;
    padding-left: 20px;
}

.history-content li {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.history-actions {
    display: flex;
    gap: 15px;
}

.btn-export-data,
.btn-delete-data {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export-data {
    background: #17a2b8;
    color: white;
}

.btn-export-data:hover {
    background: #138496;
}

.btn-delete-data {
    background: #dc3545;
    color: white;
}

.btn-delete-data:hover {
    background: #c82333;
}

/* Additional Responsive Design for Preferences Modal */
@media (max-width: 768px) {
    .preferences-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .preferences-header {
        padding: 20px 25px 15px;
    }
    
    .preferences-header h2 {
        font-size: 22px;
    }
    
    .preferences-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .tab-content {
        padding: 20px 25px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
    }
    
    .category-toggle {
        order: 2;
        align-self: flex-start;
    }
    
    .category-info {
        order: 1;
        flex: 1;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .privacy-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .history-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .preferences-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .preferences-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .preferences-header {
        padding: 15px 20px;
    }
    
    .preferences-header h2 {
        font-size: 20px;
    }
    
    .preferences-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .tab-button {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .tab-content {
        padding: 15px 20px;
    }
    
    .category-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .category-info h4 {
        font-size: 16px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .toggle-switch {
        width: 50px;
        height: 26px;
    }
    
    .toggle-slider:before {
        height: 20px;
        width: 20px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
    
    .preferences-footer {
        padding: 15px 20px;
    }
    
    .btn-preferences-save,
    .btn-preferences-reset {
        padding: 12px 20px;
        font-size: 13px;
    }
}