/* Cookie Consent System Styles */

/* Cookie Banner */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: Arial, sans-serif;
}

#cookieBanner.show {
    transform: translateY(0);
}

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

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

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

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

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn.accept {
    background: #27ae60;
    color: white;
}

.cookie-btn.accept:hover {
    background: #229954;
}

.cookie-btn.reject {
    background: #e74c3c;
    color: white;
}

.cookie-btn.reject:hover {
    background: #c0392b;
}

.cookie-btn.manage {
    background: transparent;
    color: #bdc3c7;
    border: 1px solid #bdc3c7;
}

.cookie-btn.manage:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* Settings Modal */
#cookieSettings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.settings-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.settings-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.settings-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

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

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

.category-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.category-description {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

input:checked + .slider {
    background-color: #27ae60;
}

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

input:disabled + .slider {
    background-color: #27ae60 !important;
    opacity: 0.6;
    cursor: not-allowed;
}

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

.settings-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Chat Placeholder */
#chatConsentPlaceholder {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: all 0.2s;
    display: none;
    align-items: center;
    justify-content: center;
}

#chatConsentPlaceholder:hover {
    background: #e9ecef;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.chat-placeholder-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-icon {
    font-size: 28px;
    opacity: 0.7;
}

.chat-text {
    display: none;
}

/* Chat Modal */
#chatConsentModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chat-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    text-align: center;
}

.chat-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.chat-modal-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
}

.chat-modal-content p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

.chat-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.chat-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-modal-btn.accept {
    background: #27ae60;
    color: white;
}

.chat-modal-btn.accept:hover {
    background: #229954;
}

.chat-modal-btn.decline {
    background: #95a5a6;
    color: white;
}

.chat-modal-btn.decline:hover {
    background: #7f8c8d;
}

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

    #chatConsentPlaceholder {
        right: 15px;
        bottom: 15px;
        max-width: 200px;
    }
}