/* Privacy Settings Additional Styles */

/* Privacy Overview */
.privacy-overview {
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-status {
    text-align: center;
    margin-bottom: 24px;
}

.status-icon-large {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.status-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.status-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-summary {
    display: grid;
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.summary-text {
    flex: 1;
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.summary-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Privacy Sections */
.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-item:last-child {
    border-bottom: none;
}

.item-control {
    display: flex;
    align-items: center;
}

.status-required {
    background: rgba(168, 85, 247, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.3);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Toggle Switches for Privacy */
.privacy-item .toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    cursor: pointer;
}

.privacy-item .toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.privacy-item .toggle-switch input:checked + .toggle-slider {
    background: #22c55e;
    border-color: #22c55e;
}

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

/* Privacy-specific animations */
.privacy-item .toggle-switch input:checked + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.privacy-item:hover .toggle-slider {
    background: rgba(255, 255, 255, 0.25);
}

.privacy-item:hover .toggle-switch input:checked + .toggle-slider {
    background: #16a34a;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.btn-primary-outline {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: 2px solid var(--brand-color);
    border-radius: 12px;
    color: var(--brand-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-outline:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.quick-actions .btn-primary {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
}

/* Privacy Rights Items with Icons */
.privacy-item .item-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Special styling for different privacy sections */
.privacy-section:nth-child(1) .summary-icon,
.privacy-section:nth-child(1) .item-icon {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.privacy-section:nth-child(2) .summary-icon,
.privacy-section:nth-child(2) .item-icon {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.privacy-section:nth-child(3) .summary-icon,
.privacy-section:nth-child(3) .item-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.privacy-section:nth-child(4) .summary-icon,
.privacy-section:nth-child(4) .item-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.privacy-section:nth-child(5) .summary-icon,
.privacy-section:nth-child(5) .item-icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

/* Enhanced hover states for privacy items */
.privacy-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin: 0 -8px;
    padding: 16px 8px;
}

.privacy-item .btn-text:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.privacy-item .btn-secondary:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Data visualization elements */
.data-usage-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.usage-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.1);
}

.usage-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.usage-segment.loyalty { background: #22c55e; }
.usage-segment.analytics { background: #3b82f6; }
.usage-segment.marketing { background: #f59e0b; }

.usage-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .privacy-overview {
        padding: 16px;
    }
    
    .status-icon-large {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .status-content h2 {
        font-size: 20px;
    }
    
    .privacy-sections {
        gap: 20px;
    }
    
    .privacy-section {
        padding: 16px;
    }
    
    .privacy-item {
        padding: 12px 0;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .btn-primary-outline,
    .quick-actions .btn-primary {
        width: 100%;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .privacy-section,
    .summary-item,
    .privacy-overview {
        border: 1px solid ButtonText;
    }
    
    .status-required,
    .toggle-switch,
    .btn-primary-outline {
        forced-color-adjust: none;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .toggle-slider,
    .toggle-slider:before,
    .usage-segment,
    .privacy-item {
        transition: none;
    }
}

/* Focus styles for accessibility */
.toggle-switch:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.btn-primary-outline:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

/* Loading states specific to privacy */
.privacy-sections.loading {
    opacity: 0.6;
    pointer-events: none;
}

.privacy-sections.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}