/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #EBEBEB;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1070bb;
}
h1 {
    font-size: 34px;
    margin-bottom: 40px;
}
h2 {
    font-size: 28px;
}
h3 {
    font-size: 20px;
}
h4 {
    font-size: 18px;
}
h5 {
    font-size: 16px;
    font-weight: 400;
}

a {
    color: #1070bb;
    text-decoration: none;
}
a:hover {
    color: #00647e;
}

.text-success {
    color: #155724;
    font-weight: bold;
}

.text-danger {
    color: #842029;
    font-weight: bold;
}

/* Navbar */
.navbar {
    background-color: #1070bb !important;
}

.navbar-brand img {
    max-width: 200px;
}

.nav-link {
    color: #FFF !important;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: #00647e !important;
}

/* Container for main content */
main {
    flex: 1; /* Ensures that the main content pushes the footer down */
    padding: 20px;
}

/* Form Styles */
form {
    background-color: #FFF;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form input {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #00647e;
    border-radius: 5px;
}

form input:focus {
    border-color: #1070bb;
    outline: none;
    box-shadow: 0 0 5px rgba(16, 112, 187, 0.2);
}

button, .btn {
    transition: background-color 0.3s ease;
}

/* Personalizzo i colori */
.btn-primary {
    background-color: #1070bb;
    border-color: #1070bb;
    color: #FFF;
}

.btn-primary:hover {
    background-color: #00647e;
    border-color: #00647e;
}

.btn-info {
    background-color: #00647e;
    border-color: #00647e;
    color: #FFF;
}

.btn-info:hover {
    background-color: #004e63;
    border-color: #004e63;
    color: #E0F8FF;
}

.text-primary {
    color: #1070bb !important;
}

/* Alert messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Footer Styles */
footer {
    background-color: #0A4775;
    padding-top: 50px;
    padding-bottom: 0;
    color: #ffffff;
    margin-top: 50px;
}

footer img {
    max-width: 200px;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

footer ul li {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

footer ul li i {
    font-size: 20px;
    margin-right: 15px;
    color: #EBEBEB;
}

footer ul li span {
    color: #ffffff;
}

footer ul li a {
    color: #ffffff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}

footer .footer-credits { 
    background-color: #062B46;
    padding: 10px 0;
    margin-top: 50px;
}

@media (max-width: 767px) {
    footer .col-lg-8,
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 30px;
    }
    footer ul {
        text-align: left;
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }
}

/* Dasboard */
.requests-list .table th {
    background-color: #1070bb;
    color: #fff;
}

.requests-list .table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

.wizard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1070bb;
    color: #fff;
    font-size: 18px;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wizard-btn:hover {
    background-color: #0A4775;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #D0E8FB;
}

.wizard-btn .btn-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.wizard-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Selectable Icons */
.icon-options {
    display: flex;
    flex-wrap: wrap; /* Permette il wrapping su più righe */
    gap: 20px; /* Spazio uniforme tra le icone */
    align-items: flex-start; /* Allinea verticalmente le icone al top */
}

.icon-option {
    cursor: pointer;
    text-align: center;
    width: 110px; /* Larghezza fissa per uniformità */
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-option:hover {
    border-color: #1070bb;
}

.icon-option p {
    margin-bottom: 0;
}

.icon-option.selected {
    border-color: #1070bb;
    background-color: #EBEBEB;
}

.choose-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

/* Barra di avanzamento */
#progress-bar-container {
    margin-top: 20px;
}

.progress {
    height: 25px;
    background-color: #EBEBEB;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: #1070bb; /* Colore di riempimento */
    height: 100%;
    transition: width 0.4s ease;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 10px;
    color: white;
    font-weight: bold;
}

.progress-bar.complete {
    background-color: #28a745; /* Verde Bootstrap */
    animation: barblink 1s infinite alternate;
}

@keyframes barblink {
    0% {
        background-color: #28a745; /* Verde più scuro */
    }
    100% {
        background-color: #34d058; /* Verde più chiaro */
    }
}

/* Testo lampeggiante */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.text-blink {
    animation: blink 1s infinite;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 20px;
    font-size: 18px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 10px;
}

/* Formulazione */
.hidden-ingredient {
    padding: 2px 4px;
    font-size: 12px;
    width: 100%;
    color: #C0C0C0;
    background-color: #CCC;
    border-radius: 5px;
    animation: shimmer 1.5s infinite linear;
}

/* Effetto shimmer per le barre */
@keyframes shimmer {
    0% {
        background-color: #cccccc;
    }
    50% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #cccccc;
    }
}