/* Privacy & Cookie Banner Styles */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 107, 182, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner-text h4 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cookie-banner-text p {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.cookie-details {
    font-size: 12px !important;
    margin-top: 5px !important;
    opacity: 0.8 !important;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cookie-settings,
.btn-accept-essential,
.btn-accept-all {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-cookie-settings {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-accept-essential {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-accept-essential:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-accept-all {
    background: #00c3e2;
    color: #fff;
}

.btn-accept-all:hover {
    background: #00a8c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 195, 226, 0.3);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.cookie-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e1f2ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    color: #086bb6;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-modal-body {
    padding: 20px 30px;
}

.cookie-modal-body > p {
    color: #086bb6;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.cookie-category {
    background: #f8fbff;
    border: 1px solid #e1f2ff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    color: #086bb6;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cookie-category p {
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .cookie-slider {
    background-color: #00c3e2;
}

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

input:disabled + .cookie-slider {
    background-color: #086bb6;
    cursor: not-allowed;
}

input:disabled + .cookie-slider:before {
    background-color: #fff;
}

.cookie-modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #e1f2ff;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-save-preferences {
    background: #086bb6;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-preferences:hover {
    background: #065a94;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 107, 182, 0.3);
}

/* Privacy Floating Button */
.privacy-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

.privacy-floating-btn button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #086bb6;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(8, 107, 182, 0.3);
    transition: all 0.3s ease;
}

.privacy-floating-btn button:hover {
    background: #00c3e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 195, 226, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-banner-actions {
        justify-content: center;
    }

    .btn-cookie-settings,
    .btn-accept-essential,
    .btn-accept-all {
        min-width: 100px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .btn-save-preferences,
    .btn-accept-all {
        width: 100%;
        justify-content: center;
    }

    .privacy-floating-btn {
        bottom: 20px;
        right: 20px;
    }

    .privacy-floating-btn button {
        width: 45px;
        height: 45px;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h4 {
        font-size: 16px;
    }

    .cookie-banner-text p {
        font-size: 13px;
    }

    .cookie-modal-header h3 {
        font-size: 20px;
    }

    .cookie-category h4 {
        font-size: 16px;
    }
}

/* Animation for banner entrance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-banner.animate-in {
    animation: slideUp 0.5s ease-out;
}

/* GDPR Compliance Notice */
.gdpr-notice {
    background: #e1f2ff;
    border-left: 4px solid #086bb6;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.gdpr-notice h4 {
    color: #086bb6;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.gdpr-notice p {
    color: #086bb6;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.gdpr-notice a {
    color: #00c3e2;
    text-decoration: none;
}

.gdpr-notice a:hover {
    text-decoration: underline;
}
