/*---Body ---*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

/* --- LOGIN PAGE --- */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;


}
.login-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
}
.login-logo {
    width:175px;   
}

/* ---Header Style  --- */
.header {
    background-color: #fff;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-logo img {
    width: 175px;
    height: 125px;
}
.header-logo h1 {
    font-size: 1.5em;
    margin: 0;
}
.header-nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    margin-left: 20px;
}
.header-nav a.btn-logout {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* --- CHEMICAL FORM STYLE --- */
.form-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.form-group {
    margin-bottom: 10px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box; 
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* --- BUTTONS  --- */
.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
}
.btn-danger { background-color: #dc3545; }
.btn-update { background-color: #ffc107; color: #333; }
.btn-borrow { background-color: #17a2b8; }
.btn-secondary { background-color: #6c757d; }
.btn-small { font-size: 0.8em; padding: 5px 8px; }

/* -- -TABLE STYLES --- */
.content-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.data-table th { background-color: #f2f2f2; }
.data-table tr:nth-child(even) { background-color: #f9f9f9; }

/* Low Stock Warning */
.tr-low-stock {
    background-color: #f8d7da;
    font-weight: bold;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #ddd;
}
.footer p {
    margin: 5px 0;
}

/* ---Error--- */
.error { color: red; font-weight: bold; }