/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

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

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

.cookie-consent-link {
    color: #007bff;
    text-decoration: underline;
    margin-left: 4px;
}

.cookie-consent-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-buttons .btn {
    white-space: nowrap;
    min-width: 100px;
}

/* Cookie Settings Modal Styles */

.cookie-settings-intro {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h6 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.cookie-category-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.cookie-category-toggle {
    flex-shrink: 0;
}

/* Toggle Switch Styles */
.cookie-toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.cookie-category-checkbox,
.cookie-toggle-label input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

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

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

.cookie-category-checkbox:checked + .cookie-toggle-label .cookie-toggle-slider,
.cookie-toggle-label input[type="checkbox"]:checked + .cookie-toggle-slider {
    background-color: #007bff;
}

.cookie-category-checkbox:checked + .cookie-toggle-label .cookie-toggle-slider:before,
.cookie-toggle-label input[type="checkbox"]:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-category-checkbox:disabled + .cookie-toggle-label .cookie-toggle-slider,
.cookie-toggle-label input[type="checkbox"]:disabled + .cookie-toggle-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.cookie-category-checkbox:focus + .cookie-toggle-label .cookie-toggle-slider,
.cookie-toggle-label input[type="checkbox"]:focus + .cookie-toggle-slider {
    box-shadow: 0 0 1px #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-consent-buttons .btn {
        flex: 1;
    }
    
    .cookie-category-header {
        flex-direction: column;
    }
    
    .cookie-category-toggle {
        align-self: flex-start;
    }
}

/* Hide banner when consent is given */
.cookie-consent-banner.cookie-consent-hidden {
    display: none !important;
}

/* Dark Mode Support */
.dark-mode .cookie-consent-banner,
[data-theme="dark"] .cookie-consent-banner {
    background: var(--theme-bg-secondary, #343a40);
    border-top-color: var(--theme-border-color, #495057);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .cookie-consent-text h4,
[data-theme="dark"] .cookie-consent-text h4 {
    color: var(--theme-text-primary, #ffffff);
}

.dark-mode .cookie-consent-text p,
[data-theme="dark"] .cookie-consent-text p {
    color: var(--theme-text-secondary, #adb5bd);
}

.dark-mode .cookie-consent-link,
[data-theme="dark"] .cookie-consent-link {
    color: #0d6efd;
}

.dark-mode .cookie-settings-intro,
[data-theme="dark"] .cookie-settings-intro {
    color: var(--theme-text-secondary, #adb5bd);
}

.dark-mode .cookie-category,
[data-theme="dark"] .cookie-category {
    background: var(--theme-bg-tertiary, #495057);
    border-color: var(--theme-border-color, #495057);
}

.dark-mode .cookie-category-info h6,
[data-theme="dark"] .cookie-category-info h6 {
    color: var(--theme-text-primary, #ffffff);
}

.dark-mode .cookie-category-desc,
[data-theme="dark"] .cookie-category-desc {
    color: var(--theme-text-secondary, #adb5bd);
}

