/* ============================================
   COOKIE CONSENT BANNER STYLES
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
    border-top: 3px solid #00A651;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cookie-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00A651 0%, #007B3A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.cookie-text p {
    font-size: 14px;
    color: #5a6c7d;
    margin: 0;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cookie {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-accept-all {
    background: linear-gradient(135deg, #00A651 0%, #007B3A 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.btn-reject {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-reject:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.btn-customize {
    background: white;
    color: #00A651;
    border: 2px solid #00A651;
}

.btn-customize:hover {
    background: #00A651;
    color: white;
}

/* ============================================
   COOKIE MODAL STYLES
   ============================================ */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

.cookie-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background: #f1f3f5;
    color: #495057;
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-modal-description {
    font-size: 15px;
    color: #5a6c7d;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: #ffffff;
    border-color: #00A651;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.1);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.cookie-category-info p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #00A651 0%, #007B3A 100%);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch.disabled .cookie-slider {
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 25px 30px;
    border-top: 2px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-save {
    width: 100%;
    background: linear-gradient(135deg, #00A651 0%, #007B3A 100%);
    color: white;
    padding: 15px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.cookie-policy-link {
    text-align: center;
    color: #00A651;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-policy-link:hover {
    color: #007B3A;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-icon {
        width: 50px;
        height: 50px;
    }
    
    .cookie-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-text h3 {
        font-size: 18px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-switch {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-consent-container {
        padding: 20px 15px;
    }
    
    .cookie-text h3 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 12px;
    }
    
    .btn-cookie {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cookie-modal-header h2 {
        font-size: 20px;
    }
}
