/* GDPR Consent Banner Styles */

#gdpr-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

#gdpr-consent-banner.gdpr-banner-hide {
    transform: translateY(100%);
}

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

.gdpr-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.gdpr-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.gdpr-banner-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.gdpr-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gdpr-button-primary {
    background: white;
    color: #667eea;
}

.gdpr-button-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gdpr-button-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.gdpr-button-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Manage Dialog Styles */

#gdpr-manage-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
}

.gdpr-dialog-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.gdpr-dialog-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.gdpr-dialog-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.gdpr-dialog-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gdpr-dialog-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.gdpr-dialog-body {
    padding: 30px;
}

.gdpr-preference-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

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

.gdpr-preference-section h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
}

.gdpr-preference-section p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */

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

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

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

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

.gdpr-toggle input:checked + .gdpr-toggle-slider {
    background-color: #667eea;
}

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

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

.gdpr-toggle-label {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #666;
}

.gdpr-dialog-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.gdpr-dialog-footer .gdpr-button {
    margin: 0;
}

.gdpr-dialog-footer .gdpr-button-primary {
    background: #667eea;
    color: white;
}

.gdpr-dialog-footer .gdpr-button-primary:hover {
    background: #5568d3;
}

.gdpr-dialog-footer .gdpr-button-secondary {
    background: #f0f0f0;
    color: #666;
    border: 2px solid #e0e0e0;
}

.gdpr-dialog-footer .gdpr-button-secondary:hover {
    background: #e0e0e0;
}

/* Responsive */

@media (max-width: 768px) {
    .gdpr-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .gdpr-banner-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .gdpr-button {
        width: 100%;
    }
    
    .gdpr-banner-text h3 {
        font-size: 1.2rem;
    }
    
    .gdpr-banner-text p {
        font-size: 0.85rem;
    }
    
    .gdpr-dialog-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .gdpr-dialog-header {
        padding: 20px;
    }
    
    .gdpr-dialog-header h2 {
        font-size: 1.2rem;
    }
    
    .gdpr-dialog-body {
        padding: 20px;
    }
    
    .gdpr-dialog-footer {
        flex-direction: column-reverse;
        padding: 20px;
    }
    
    .gdpr-dialog-footer .gdpr-button {
        width: 100%;
    }
}
