/* Cookie Banner Styles */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    border-top: 3px solid #0d6efd;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text h4 i {
    color: #0d6efd;
}

.cookie-banner-text p {
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner-text .cookie-links {
    margin-top: 10px;
    font-size: 0.9rem;
}

.cookie-banner-text .cookie-links a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-banner-text .cookie-links a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-btn i {
    font-size: 1rem;
}

.cookie-btn-accept {
    background: #0d6efd;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.cookie-btn-necessary {
    background: #6c757d;
    color: #ffffff;
}

.cookie-btn-necessary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.cookie-btn-settings {
    background: #ffffff;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.cookie-btn-settings:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-modal-header h3 i {
    color: #0d6efd;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background: #f8f9fa;
    color: #0f172a;
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-modal-intro {
    margin: 0 0 30px 0;
    color: #64748b;
    line-height: 1.7;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.cookie-category-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
}

.cookie-category-header h4 {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.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: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #0d6efd;
}

.cookie-switch input:focus + .cookie-slider {
    box-shadow: 0 0 1px #0d6efd;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.cookie-category-details {
    padding: 0 20px 20px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.cookie-category-details ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.8;
}

.cookie-category-details li {
    margin-bottom: 8px;
}

.cookie-category-details strong {
    color: #0f172a;
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Notification */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .cookie-modal-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-banner-text h4 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

