/* Consent Banner Styles */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-banner.consent-hidden {
    transform: translateY(100%);
    pointer-events: none;
}

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

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

.consent-text h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-text p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
}

.consent-text a {
    color: #74b9ff;
    text-decoration: underline;
    font-weight: 500;
}

.consent-text a:hover {
    color: #0984e3;
}

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

.consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: none;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.consent-btn.accept {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
}

.consent-btn.accept:hover {
    background: linear-gradient(45deg, #00a085, #00b7b8);
}

.consent-btn.settings {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
}

.consent-btn.settings:hover {
    background: linear-gradient(45deg, #5f3dc4, #9775fa);
}

.consent-btn.reject {
    background: linear-gradient(45deg, #636e72, #b2bec3);
    color: white;
}

.consent-btn.reject:hover {
    background: linear-gradient(45deg, #2d3436, #636e72);
}

/* Modal Styles (CRITICAL) */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.consent-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.consent-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.modal-header p {
    color: #636e72;
    font-size: 0.95rem;
}

.cookie-category {
    margin: 20px 0;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ddd;
    transition: border-color 0.3s ease;
}

.cookie-category.enabled {
    border-left-color: #00b894;
    background: #f0fdf4;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.cookie-category input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: #00b894;
}

.cookie-category input[type="checkbox"]:disabled {
    opacity: 0.6;
}

.cookie-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-info small {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn.cancel {
    background: #ddd;
    color: #636e72;
}

.modal-btn.cancel:hover {
    background: #bbb;
}

.modal-btn.save {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
}

.modal-btn.save:hover {
    background: linear-gradient(45deg, #00a085, #00b7b8);
}

/* Toast Notifications */
.consent-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 10002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #00b894;
}

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

.consent-toast.success {
    border-left-color: #00b894;
}

.consent-toast.info {
    border-left-color: #74b9ff;
}

.consent-toast.warning {
    border-left-color: #fdcb6e;
}

.consent-toast.error {
    border-left-color: #e17055;
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .consent-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .consent-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .consent-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}
