/* Cookie Consent Banner Styles */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 25px 0;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookieConsent.show {
    transform: translateY(0);
}

#cookieConsent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

#cookieConsent .cookie-text {
    flex: 1;
    min-width: 300px;
}

#cookieConsent h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

#cookieConsent p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

#cookieConsent p a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.3s ease;
}

#cookieConsent p a:hover {
    color: #93c5fd;
}

#cookieConsent .cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#cookieConsent button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#cookieConsent .btn-accept-all {
    background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

#cookieConsent .btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

#cookieConsent .btn-necessary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

#cookieConsent .btn-necessary:hover {
    background: rgba(255,255,255,0.2);
}

#cookieConsent .btn-settings {
    background: transparent;
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    text-decoration: underline;
}

#cookieConsent .btn-settings:hover {
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-modal-header {
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #111827;
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.cookie-category p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: #2563eb;
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cookie-modal-footer button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-modal-footer .btn-save {
    background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
    color: white;
}

.cookie-modal-footer .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cookie-modal-footer .btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.cookie-modal-footer .btn-cancel:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    #cookieConsent .container {
        flex-direction: column;
        align-items: stretch;
    }

    #cookieConsent .cookie-buttons {
        width: 100%;
    }

    #cookieConsent button {
        flex: 1;
        justify-content: center;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer button {
        width: 100%;
    }
}
