/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #007bff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #007bff;
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-consent-buttons .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-buttons .btn-primary {
    background: #007bff;
    color: white;
}

.cookie-consent-buttons .btn-primary:hover {
    background: #0056b3;
}

.cookie-consent-buttons .btn-secondary {
    background: #6c757d;
    color: white;
}

.cookie-consent-buttons .btn-secondary:hover {
    background: #545b62;
}

.cookie-consent-buttons .btn-outline {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.cookie-consent-buttons .btn-outline:hover {
    background: #007bff;
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
}

.cookie-settings-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

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

.cookie-settings-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

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

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-settings-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.cookie-category-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

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

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

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

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

input:checked+.slider {
    background-color: #007bff;
}

input:disabled+.slider {
    background-color: #28a745;
    cursor: not-allowed;
}

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

.cookie-settings-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-settings-footer .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-settings-footer .btn-primary {
    background: #007bff;
    color: white;
}

.cookie-settings-footer .btn-primary:hover {
    background: #0056b3;
}

.cookie-settings-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.cookie-settings-footer .btn-secondary:hover {
    background: #545b62;
}

/* Toast Notification */
.cookie-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 14px;
    max-width: 300px;
}

.cookie-toast.show {
    transform: translateX(0);
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: #2c2c2c;
        border-top-color: #007bff;
    }

    .cookie-consent-text h4 {
        color: #fff;
    }

    .cookie-consent-text p {
        color: #ccc;
    }

    .cookie-settings-content {
        background: #2c2c2c;
    }

    .cookie-settings-header {
        border-bottom-color: #444;
    }

    .cookie-settings-header h3 {
        color: #fff;
    }

    .cookie-category {
        border-bottom-color: #444;
    }

    .cookie-category-header h4 {
        color: #fff;
    }

    .cookie-category p {
        color: #ccc;
    }

    .cookie-settings-footer {
        border-top-color: #444;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    .cookie-consent-buttons .btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-settings-content {
        width: 95%;
        margin: 20px;
    }

    .cookie-settings-header {
        padding: 16px;
    }

    .cookie-settings-body {
        padding: 16px;
    }

    .cookie-settings-footer {
        padding: 16px;
        flex-direction: column;
    }

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

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

    .cookie-toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 16px;
    }

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

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

    .cookie-consent-buttons .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}