/* RGPD Banner Styles */
.rgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.rgpd-banner.active {
    transform: translateY(0);
}

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

.rgpd-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.rgpd-text h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.rgpd-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.rgpd-text a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.rgpd-text a:hover {
    color: #764ba2;
}

.rgpd-controls {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.rgpd-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.rgpd-btn.settings {
    background: rgba(255, 255, 255, 0.1);
}

.rgpd-btn.reject {
    background: rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.5);
}

.rgpd-btn.reject:hover {
    background: rgba(255, 77, 77, 0.3);
}

.rgpd-btn.accept {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

.rgpd-btn.accept:hover {
    background: rgba(102, 126, 234, 0.4);
}

.rgpd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* RGPD Modal Styles */
.rgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.rgpd-modal.active {
    display: flex;
}

.rgpd-modal-content {
    background: rgba(30, 30, 46, 0.95);
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.rgpd-modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rgpd-modal-header h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.rgpd-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.rgpd-close:hover {
    color: white;
}

.rgpd-options {
    padding: 20px 30px;
}

.rgpd-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rgpd-option:last-child {
    border-bottom: none;
}

.rgpd-option-info {
    flex: 1;
    padding-right: 20px;
}

.rgpd-option-title {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.rgpd-option-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
}

.rgpd-required {
    display: inline-block;
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Switch Styles */
.rgpd-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.rgpd-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

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

input:checked + .rgpd-slider {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

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

input:disabled + .rgpd-slider {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

input:disabled + .rgpd-slider:before {
    background: rgba(255, 255, 255, 0.5);
}

.rgpd-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rgpd-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .rgpd-controls {
        width: 100%;
        justify-content: center;
    }
    
    .rgpd-btn {
        flex: 1;
        min-width: auto;
    }
    
    .rgpd-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .rgpd-modal-header {
        padding: 20px 25px 15px;
    }
    
    .rgpd-options {
        padding: 15px 25px;
    }
    
    .rgpd-modal-footer {
        padding: 15px 25px;
        flex-direction: column;
    }
    
    .rgpd-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rgpd-option-info {
        padding-right: 0;
    }
    
    .rgpd-switch {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .rgpd-banner {
        padding: 15px;
    }
    
    .rgpd-text h3 {
        font-size: 16px;
    }
    
    .rgpd-text p {
        font-size: 13px;
    }
    
    .rgpd-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .rgpd-modal-header h3 {
        font-size: 20px;
    }
}