/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

.cookie-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content {
    flex: 1;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e5e7eb;
}

.cookie-content a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #93c5fd;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn.accept {
    background-color: #4F46E5;
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #3730a3;
}

.cookie-btn.reject {
    background-color: transparent;
    color: #e5e7eb;
    border: 1px solid #6b7280;
}

.cookie-btn.reject:hover {
    background-color: #374151;
    border-color: #9ca3af;
}

.cookie-btn.customize {
    background-color: #166534;
    color: white;
}

.cookie-btn.customize:hover {
    background-color: #14532d;
}

/* Cookie Preferences Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cookie-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #9ca3af;
}

.cookie-modal-close:hover {
    color: #1f2937;
}

.cookie-modal h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.cookie-category h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    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: #ccc;
    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%;
}

input:checked + .cookie-slider {
    background-color: #4F46E5;
}

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

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

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cookie-modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-modal-btn.save {
    background-color: #4F46E5;
    color: white;
}

.cookie-modal-btn.save:hover {
    background-color: #3730a3;
}

.cookie-modal-btn.cancel {
    background-color: #e5e7eb;
    color: #374151;
}

.cookie-modal-btn.cancel:hover {
    background-color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-content {
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}