/* Definirea variabilelor de culoare */
:root {
    --primary: #223359;       /* Culoarea de bază */
    --primary-light: #2b3d5f;  /* Nuanță ușor mai deschisă */
    --primary-dark: #1a273e;   /* Nuanță mai închisă */
    --secondary: #f1f1f1;      /* Pentru butonul de setări cookie */
}

/* Stiluri CSS pentru pop-up */
#consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    text-align: center;
    font-family: 'Arial', sans-serif;
    border-top: 3px solid var(--primary);
}

#consent-popup h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--primary);
}

#consent-popup p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #666;
}

/* Container pentru butoane aliniate cu Flexbox */
#consent-popup .button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#consent-popup button {
    margin: 0;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Butonul "Acceptă toate" */
#consent-popup button#accept-all {
    background-color: var(--primary);
    color: #fff;
}
#consent-popup button#accept-all:hover {
    background-color: var(--primary-dark);
}

/* Butonul "Respinge toate" cu stil invers */
#consent-popup button#reject-all {
    background-color: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
}
#consent-popup button#reject-all:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Butonul "Personalizează" */
#consent-popup button#customize {
    background-color: var(--primary-light);
    color: #fff;
}
#consent-popup button#customize:hover {
    background-color: var(--primary);
}

/* Responsive pentru ecrane mici */
@media screen and (max-width: 600px) {
    #consent-popup {
        padding: 15px;
    }
    #consent-popup h2 {
        font-size: 18px;
    }
    #consent-popup p {
        font-size: 14px;
    }
    #consent-popup .button-container {
        flex-direction: column;
        gap: 8px;
    }
    #consent-popup button {
        width: 100%;
    }
}

/* Stiluri pentru modalul de personalizare */
#consent-customize {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    animation: fadeIn 0.3s ease;
}

#consent-customize .modal-content {
    background-color: #fff;
    padding: 30px 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#consent-customize h2 {
    margin-top: 0;
    font-size: 22px;
    color: var(--primary);
}

#consent-customize p {
    font-size: 16px;
    color: #666;
}

#consent-customize label {
    display: block;
    margin: 10px 0;
    font-size: 15px;
    color: var(--primary);
}

#consent-customize button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#consent-customize button:hover {
    background-color: var(--primary-dark);
}

/* Stiluri pentru butonul de setări cookie */
#cookie-settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--secondary);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
#cookie-settings-button:hover {
    background-color: #e2e2e2;
}
#cookie-settings-button img {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 600px) {
    #cookie-settings-button {
        bottom: 15px;
        left: 15px;
        padding: 8px;
        width: 45px;
        height: 45px;
    }
    #cookie-settings-button img {
        width: 20px;
        height: 20px;
    }
}

/* Animație pentru fadeIn */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.modal-content input, select {
	width: 20px;
}