/* EU/GDPR Cookie Consent Styles */

/* Cookie Modal Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-overlay.show {
    opacity: 1;
}

.cookie-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cookie-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-content {
    padding: 0;
}

.cookie-header {
    background: #012970;
    color: white;
    padding: 24px 32px 20px;
    text-align: center;
}

.cookie-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white !important;
}

.cookie-header i {
    font-size: 1.8rem;
    color: white;
}

.cookie-body {
    padding: 32px;
    text-align: center;
}

.cookie-body p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
}

.cookie-body p:last-child {
    margin-bottom: 0;
}

.cookie-link {
    color: #4154f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #012970;
    text-decoration: underline;
}

.cookie-footer {
    padding: 24px 32px 32px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-buttons .btn-outline-secondary {
    color: #012970;
    border-color: #012970;
    background: white;
}

.cookie-buttons .btn-outline-secondary:hover {
    background: #012970;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 41, 112, 0.3);
}

.cookie-buttons .btn-primary {
    background: #4154f1;
    border: none;
    color: white;
}

.cookie-buttons .btn-primary:hover {
    background: #012970;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 41, 112, 0.4);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .cookie-modal {
        width: 95%;
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .cookie-header {
        padding: 16px 20px 12px;
    }
    
    .cookie-header h4 {
        font-size: 1.2rem;
        gap: 8px;
        flex-wrap: wrap;
        line-height: 1.3;
    }
    
    .cookie-header i {
        font-size: 1.4rem;
    }
    
    .cookie-body {
        padding: 20px;
    }
    
    .cookie-body p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .cookie-footer {
        padding: 16px 20px 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 8px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .cookie-modal {
        width: 98%;
        margin: 5px;
    }
    
    .cookie-header h4 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .cookie-body {
        padding: 16px;
    }
    
    .cookie-body p {
        font-size: 0.85rem;
    }
    
    .cookie-footer {
        padding: 12px 16px 16px;
    }
    
    .cookie-buttons .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Animation keyframes */
@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-modal.animate {
    animation: cookieSlideIn 0.4s ease-out;
}

/* Cookie Settings Modal Styles */
#cookieSettingsModal .modal-header {
    border-bottom: 1px solid #dee2e6;
}

#cookieSettingsModal .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 4px;
}

#cookieSettingsModal .modal-footer .btn-outline-secondary {
    color: #012970;
    border-color: #012970;
    background: white;
}

#cookieSettingsModal .modal-footer .btn-outline-secondary:hover {
    background: #012970;
    color: white;
}

#cookieSettingsModal .modal-footer .btn-outline-primary {
    color: #4154f1;
    border-color: #4154f1;
    background: white;
}

#cookieSettingsModal .modal-footer .btn-outline-primary:hover {
    background: #4154f1;
    color: white;
}

#cookieSettingsModal .modal-footer .btn-primary {
    background: #4154f1;
    border-color: #4154f1;
    color: white;
}

#cookieSettingsModal .modal-footer .btn-primary:hover {
    background: #012970;
    border-color: #012970;
}

#cookieSettingsModal .form-check-input:checked {
    background-color: #4154f1;
    border-color: #4154f1;
}

#cookieSettingsModal .form-check-input:focus {
    border-color: #4154f1;
    box-shadow: 0 0 0 0.2rem rgba(65, 84, 241, 0.25);
}

/* Legacy cookiealert styles for backwards compatibility */
.cookiealert {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    border: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    font-size: 14px;
    line-height: 1.4;
    display: none;
    animation: slideUpFadeIn 0.5s ease-out;
}

.cookiealert.show {
    display: block !important;
}

.cookiealert a {
    color: #ffc107;
    text-decoration: underline;
    font-weight: 500;
}

.cookiealert a:hover {
    color: #ffca2c;
}

.cookiealert .btn {
    font-size: 13px;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 2px;
}

.cookiealert .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookiealert .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cookiealert .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 600;
}

.cookiealert .btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Cookie Settings Modal Enhancements */
#cookieSettingsModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#cookieSettingsModal .modal-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

#cookieSettingsModal .form-check {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#cookieSettingsModal .form-check:hover {
    border-color: #ced4da;
    background-color: #f8f9fa;
}

#cookieSettingsModal .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

#cookieSettingsModal .form-check-label strong {
    color: #495057;
    display: block;
    margin-bottom: 5px;
}

#cookieSettingsModal .text-muted {
    font-size: 13px;
    color: #6c757d !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookiealert {
        padding: 20px 0;
    }
    
    .cookiealert .container .row {
        flex-direction: column;
        text-align: center;
    }
    
    .cookiealert .col-md-4 {
        margin-top: 15px;
    }
    
    .cookiealert .btn {
        margin: 5px;
        display: inline-block;
        min-width: 120px;
    }
    
    #cookieSettingsModal .modal-dialog {
        margin: 10px;
    }
}

/* Animation for cookie banner */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie info alert enhancements */
.cookie-info-alert {
    border-left: 4px solid #17a2b8;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.cookie-info-alert h4 {
    color: #0c5460;
}

/* Accessibility improvements */
.cookiealert:focus-within {
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.cookiealert .btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookiealert {
        background: black;
        border-top: 2px solid white;
    }
    
    .cookiealert a {
        color: yellow;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookiealert {
        animation: none;
    }
    
    .cookiealert .btn {
        transition: none;
    }
}