/* public/assets/css/cookie-consent.css */

/* Banner Styles */
#cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

#cookie-consent-banner.show {
    bottom: 0;
}

/* Modal Styles */
#cookie-preferences-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#cookie-preferences-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-content {
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-preferences-modal.show .cookie-modal-content {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar for modal content */
.cookie-modal-body::-webkit-scrollbar {
    width: 6px;
}

.cookie-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
    background: rgba(89, 50, 205, 0.3);
    border-radius: 4px;
}

.cookie-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(89, 50, 205, 0.6);
}

/* Toggle Switch Styles */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.cookie-slider {
    background-color: #5932cdff;
    /* brand color */
}

input:focus+.cookie-slider {
    box-shadow: 0 0 1px #5932cdff;
}

input:checked+.cookie-slider:before {
    transform: translateX(20px);
}

input:disabled+.cookie-slider {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

input:disabled:checked+.cookie-slider {
    background-color: #8b5cf6;
    /* purple-500 */
}