/* GDPR Cookie Consent Banner Styles */

/* Overlay */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

/* Banner Container */
.cookie-consent-banner {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.4s ease-out;
}

/* Content */
.cookie-consent-content {
    padding: 30px;
}

/* Header */
.cookie-consent-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.cookie-consent-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cookie-consent-title {
    color: #2d3748;
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

/* Body */
.cookie-consent-body {
    margin-bottom: 25px;
}

.cookie-consent-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Cookie Categories */
.cookie-categories {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.cookie-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-category-header .form-check {
    display: flex;
    align-items: center;
}

.cookie-category-header .form-check-label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #2d3748;
    cursor: pointer;
    margin-bottom: 0;
}

.cookie-category-header .form-check-input {
    margin-right: 10px;
    cursor: pointer;
}

.cookie-category-header .form-check-input:disabled {
    cursor: not-allowed;
}

.cookie-category-description {
    margin-left: 35px;
    color: #718096;
    line-height: 1.5;
}

/* Footer */
.cookie-consent-footer {
    border-top: 2px solid #f8f9fa;
    padding-top: 20px;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.cookie-consent-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.2s ease;
    border-width: 2px;
}

.cookie-consent-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-consent-actions .btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-color: #38a169;
}

.cookie-consent-actions .btn-primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-color: #3182ce;
}

.cookie-consent-actions .btn-outline-secondary {
    color: #718096;
    border-color: #cbd5e0;
}

.cookie-consent-actions .btn-outline-secondary:hover {
    background-color: #718096;
    border-color: #718096;
    color: white;
}

/* Links */
.cookie-consent-links {
    text-align: center;
    font-size: 0.9rem;
}

.cookie-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Cookie Settings Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 2px solid #f8f9fa;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

/* Accordion Enhancements */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #2d3748;
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 20px;
    background: white;
}

.accordion-body ul {
    margin-bottom: 15px;
}

.accordion-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Cookie Preferences Floating Button */
.cookie-preferences-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

.cookie-preferences-btn .btn {
    border-radius: 50px;
    padding: 12px 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-width: 2px;
    transition: all 0.3s ease;
}

.cookie-preferences-btn .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-overlay {
        padding: 15px;
    }
    
    .cookie-consent-banner {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .cookie-consent-content {
        padding: 20px;
    }
    
    .cookie-consent-title {
        font-size: 1.3rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .cookie-categories {
        padding: 15px;
    }
    
    .cookie-category-description {
        margin-left: 25px;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .cookie-preferences-btn {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-overlay {
        padding: 10px;
    }
    
    .cookie-consent-content {
        padding: 15px;
    }
    
    .cookie-consent-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 10px;
    }
    
    .cookie-consent-title {
        font-size: 1.2rem;
    }
    
    .cookie-consent-text {
        font-size: 0.95rem;
    }
    
    .cookie-consent-links {
        font-size: 0.85rem;
    }
    
    .cookie-categories {
        padding: 12px;
    }
    
    .accordion-button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 0.9rem;
    }
}

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

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

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

/* Badge Enhancements */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Form Switch Enhancements */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alert Enhancements */
.alert-info {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    border: 1px solid #b3d9ff;
    color: #0066cc;
    border-radius: 10px;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Print Styles */
@media print {
    .cookie-consent-overlay,
    .cookie-preferences-btn {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border: 3px solid #000;
    }
    
    .cookie-consent-icon {
        background: #000;
    }
    
    .cookie-link {
        color: #0000ee;
        text-decoration: underline;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-overlay,
    .cookie-consent-banner,
    .cookie-preferences-btn {
        animation: none;
    }
    
    .cookie-consent-actions .btn:hover {
        transform: none;
    }
    
    .cookie-preferences-btn .btn:hover {
        transform: none;
    }
}
