/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.cookie-consent-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-consent-text p {
    margin: 0;
    color: #f0f0f0;
}

.cookie-consent-text a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-text a:hover {
    color: #6aa8ff;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cookie-consent-buttons .btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    border: none;
    white-space: nowrap;
}

.cookie-consent-buttons .btn-primary {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cookie-consent-buttons .btn-primary:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cookie-consent-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cookie-consent-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.active {
    display: flex;
}

.cookie-settings-modal-content {
    background: #fff;
    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: modalFadeIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 12px 12px 0 0;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

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

.close-btn:hover {
    background: #eee;
    color: #333;
    transform: rotate(90deg);
}

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

.cookie-settings-body > p {
    margin-top: 0;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

/* Cookie Categories */
.cookie-categories {
    margin-bottom: 30px;
}

.cookie-category {
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cookie-category-header {
    padding: 18px 20px;
}

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

.cookie-category-title h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.cookie-category-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.required-badge {
    background: #e0e0e0;
    color: #555;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    margin-left: 5px;
}

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

.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: .4s;
    border-radius: 24px;
}

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

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

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

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

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

/* Cookie Settings Buttons */
.cookie-settings-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cookie-settings-buttons .btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    border: none;
}

.cookie-settings-buttons .btn-primary {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cookie-settings-buttons .btn-primary:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cookie-settings-buttons .btn-outline {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-settings-buttons .btn-outline:hover {
    background: #eee;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Toast Notification */
.cookie-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    max-width: 90%;
    text-align: center;
}

.cookie-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
    
    .cookie-settings-buttons .btn {
        width: 100%;
    }
    
    .cookie-category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .switch {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

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

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

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

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

.required-notice {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

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

.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: .4s;
    border-radius: 34px;
}

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

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

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

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

input:disabled + .slider {
    opacity: 0.7;
    cursor: not-allowed;
}

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

/* Notification */
.cookie-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-text {
        padding-right: 0;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-settings-modal {
        padding: 10px;
    }
    
    .cookie-settings-modal-content {
        max-height: 95vh;
    }
    
    .cookie-settings-header {
        padding: 15px 20px;
    }
    
    .cookie-settings-body {
        padding: 20px 15px;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .cookie-settings-footer .btn {
        width: 100%;
    }
}

/* Animation for banner */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-consent-banner {
    animation: slideUp 0.5s ease-out;
}
