/* ZoneTrain Cookie Consent System - GDPR/DPDP Compliant */

.zt-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #6B46C1);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(107, 70, 193, 0.3);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 -10px 30px rgba(107, 70, 193, 0.2);
    color: white;
}

.zt-cookie-banner.show {
    transform: translateY(0);
}

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

.zt-cookie-content {
    flex: 1;
    min-width: 300px;
}

.zt-cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zt-cookie-text {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 12px;
}

.zt-cookie-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.zt-cookie-link {
    color: #A78BFA;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.zt-cookie-link:hover {
    color: #C4B5FD;
    text-decoration: underline;
}

.zt-cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.zt-cookie-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.zt-cookie-accept {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.zt-cookie-accept:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.zt-cookie-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.zt-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.zt-cookie-settings {
    background: transparent;
    color: #A78BFA;
    border: 1px solid #A78BFA;
}

.zt-cookie-settings:hover {
    background: rgba(167, 139, 250, 0.1);
    color: #C4B5FD;
}

/* Cookie Settings Modal */
.zt-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zt-cookie-modal.show {
    display: flex;
}

.zt-cookie-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #6B46C1);
    border-radius: 20px;
    border: 2px solid rgba(167, 139, 250, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    color: white;
}

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

.zt-cookie-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.zt-cookie-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.zt-cookie-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.zt-cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.zt-cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.zt-cookie-category-desc {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.zt-cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #374151;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zt-cookie-toggle.active {
    background: linear-gradient(135deg, #10B981, #059669);
}

.zt-cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zt-cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zt-cookie-toggle.active .zt-cookie-toggle-slider {
    transform: translateX(24px);
}

.zt-cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toast Notifications */
.zt-cookie-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    z-index: 10002;
    animation: ztSlideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .zt-cookie-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .zt-cookie-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .zt-cookie-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .zt-cookie-modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .zt-cookie-modal-actions {
        flex-direction: column;
    }
}

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

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