/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #163963;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.cookie-text {
    flex: 1;
}

.cookie-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-accept {
    background: #fff;
    color: #163963;
}

.btn-accept:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-settings {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid #fff;
}

.btn-settings:hover {
    background: rgba(255,255,255,0.25);
}

.btn-necessary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-necessary:hover {
    background: rgba(255,255,255,0.1);
}

/* Cookie Preferences Modal */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-preferences-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.cookie-preferences-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-preferences-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-preferences-header h2 {
    margin: 0;
    font-size: 22px;
    color: #163963;
    font-family: 'Montserrat', sans-serif;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    color: #333;
}

.cookie-preferences-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
}

.cookie-tabs {
    width: 220px;
    background: #f5f5f5;
    padding: 20px 0;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cookie-tab {
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.cookie-tab:hover {
    background: #fff;
    color: #163963;
}

.cookie-tab.active {
    background: #fff;
    color: #163963;
    font-weight: 600;
    border-left-color: #163963;
}

.cookie-tab-content {
    flex: 1;
    padding: 30px;
}

.cookie-panel {
    display: none;
}

.cookie-panel.active {
    display: block;
}

.cookie-panel h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #163963;
    font-family: 'Montserrat', sans-serif;
}

.cookie-panel p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.cookie-switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-switch-container span {
    font-weight: 600;
    color: #163963;
}

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

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

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

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

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch.disabled .cookie-slider {
    cursor: not-allowed;
    background-color: #4CAF50;
}

.cookie-preferences-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-preferences-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-save {
    background: #163963;
    color: #fff;
}

.btn-save:hover {
    background: #0f2847;
    transform: translateY(-2px);
}

.btn-accept-all {
    background: #4CAF50;
    color: #fff;
}

.btn-accept-all:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .cookie-preferences-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cookie-preferences-body {
        flex-direction: column;
    }
    
    .cookie-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .cookie-tab {
        flex: 1;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 15px;
    }
    
    .cookie-tab.active {
        border-left: none;
        border-bottom-color: #163963;
    }
    
    .cookie-preferences-footer {
        flex-direction: column;
    }
    
    .cookie-preferences-footer button {
        width: 100%;
    }
}