/* Global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

.logo-container {
    display:block;
    margin-top: 20px;
}

.logo {
    display: block;
    max-width: 350px;
    height: auto;
    margin-top:30px;
}

.logo-login{
    display: block;
    max-width: 350px;
    height: auto;
    margin-top:30px;
    margin-left:30px;
}

.portal-text {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #333;
}

.searchbar-container {
    display:block;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin-top: 20px;
}

.searchbar {
    display: flex;
    flex-direction: column;
}

.login-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.login-button {
    padding: 15px 20px;
    background-color: #007bff;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.login-button:hover {
    background-color: #0056b3;
}

.input-field {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px) saturate(180%);
    color: #000000;
    font-size: 1rem;
}

.search-button {
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 15px 20px;
    background-color: #007bff;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    text-align: center; 
    position: relative; 
}

.search-button .text {
    flex: 1; 
    text-align: center;
}

.search-button img {
    width: 35px;
    height: 35px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.search-button .button-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 45px;
}

.search-button:hover {
    background-color: #0056b3;
}

.search-results {
    margin-top: 20px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    margin-left: 5px;
    text-align: center;
}

.result-item p {
    display: inline-block;
}

.result-item .result-title {
    flex: 0 0 auto;
}

.error-message {
    color: red;
    margin-top: 10px;
}

/* Status circle styles */
.status-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Green status */
.status-circle.available {
    background-color: green;
}

/* Yellow status */
.status-circle.low_stock {
    background-color: orange;
}

/* Red status */
.status-circle.out_of_stock {
    background-color: red;
}

.availability-container {
    display: flex;
    align-items: center;
}

.availability-details {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.availability-details span {
    display: block;
    text-align: center;
}

.availability-title {
    margin-left: -5px;
}

.result-item span {
    white-space: pre;
}

.logout-button {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    width: auto;
    text-align: center;
    line-height: 1;
    margin-top: 20px;
    align-self: center;
}

.logout-button:hover {
    background-color: #005bb5;
}

/* Mobile Mode */
@media (max-width: 768px) {
    body {
        margin:0;
    }

    .logo {
        width: 80%;
        max-width: 320px;
        margin: 20px auto;
    }

    .portal-text {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    .searchbar-container {
        width: 90%;
        max-width: 400px;
    }

    .input-field {
        font-size: 1.1rem;
    }

    .search-button {
        padding: 7px 10px;
        font-size: 1.1rem;
    }

    .search-button img {
        width: 25px;
        height: 25px;
    }

    .logout-button {
        margin-top: 20px;
    }
}
