/* DWAR Consent Management Styles */
/* Additional styles for consent components */

.dwar-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.consent-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.consent-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 10px 0;
}

.consent-status.granted {
    background: #10B981;
    color: white;
}

.consent-status.denied {
    background: #EF4444;
    color: white;
}

.consent-status.partial {
    background: #F59E0B;
    color: white;
}

/* Google Funding Choices override styles */
.fc-consent-root {
    z-index: 10000 !important;
}

.fc-dialog-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.fc-dialog-headline {
    color: #1F2937 !important;
}

.fc-button-background {
    background: #4F46E5 !important;
    border-radius: 8px !important;
}

.fc-button-background:hover {
    background: #4338CA !important;
}

/* Cookie preference center */
.consent-preference-center {
    max-width: 800px;
    margin: 50px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.preference-header {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    padding: 30px;
    text-align: center;
}

.preference-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.preference-content {
    padding: 40px;
}

.consent-toggle-group {
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.consent-toggle-group:hover {
    border-color: #4F46E5;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.1);
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-description {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.consent-benefits {
    background: #F9FAFB;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.consent-benefits h4 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.consent-benefits ul {
    margin: 0;
    padding-left: 20px;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .consent-preference-center {
        margin: 20px;
    }
    
    .preference-content {
        padding: 20px;
    }
    
    .consent-toggle-group {
        padding: 20px;
    }
    
    .toggle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Accessibility improvements */
.consent-btn:focus,
.toggle input:focus + .slider {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

.consent-btn:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* Loading states */
.consent-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-top: 2px solid #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/error messages */
.consent-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-message.success {
    background: #D1FAE5;
    border: 1px solid #10B981;
    color: #065F46;
}

.consent-message.error {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

/* GDPR compliance indicator */
.gdpr-compliant {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #10B981;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Privacy policy link in consent */
.consent-privacy-link {
    color: #4F46E5;
    text-decoration: underline;
    font-weight: 500;
}

.consent-privacy-link:hover {
    color: #4338CA;
}