/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
    border-top: 3px solid #f59e0b;
}

.cookie-consent-banner.show {
    bottom: 0;
}

.cookie-consent-banner.hide {
    bottom: -100%;
}

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

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

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

.cookie-consent-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-title i {
    color: #f59e0b;
    font-size: 1.2rem;
}

.cookie-consent-description {
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.cookie-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1) translateY(0);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

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

.cookie-modal-body {
    padding: 1.5rem;
}

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

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

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.category-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.cookie-category p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

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

/* Toggle Switch Styles */
.toggle-container {
    position: relative;
    display: inline-block;
}

.toggle-container input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-container input[type="checkbox"]:checked + .toggle {
    background-color: #22c55e;
}

.toggle-container input[type="checkbox"]:checked + .toggle:before {
    transform: translateX(20px);
}

.toggle-disabled {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #e2e8f0;
    border-radius: 24px;
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle-disabled:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 22px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.cookie-consent-banner .btn,
.cookie-modal .btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.btn-accept {
    background: #22c55e;
    color: white;
}

.btn-accept:hover {
    background: #16a34a;
}

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

.btn-customize:hover {
    background: #d97706;
}

.btn-reject {
    background: #6b7280;
    color: white;
}

.btn-reject:hover {
    background: #4b5563;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
    }
    
    .cookie-modal {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
}