/* Layout & base */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #222;
}

/* Center the top dashboard card while allowing page content to flow */
.top-row {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.dashboard-container {
    background-color: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    min-width: 300px;
    max-width: 980px;
    margin: 0 auto 18px;
}

.dashboard-container h1 {
    color: #007BFF;
    margin: 0 0 8px 0;
}

#logoutBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    padding: 8px 15px;
    background-color: #dc3545;
    color: #fff;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#logoutBtn:hover { background-color: #c82333; }

/* Page header used instead of dashboard-container */
.page-header {
    max-width: 980px;
    margin: 18px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.page-title {
    margin: 0;
    color: #007BFF;
    font-size: 1.25rem;
}

/* Make the logout button sit inline in the header (remove absolute positioning) */
#logoutBtn {
    position: static;
    margin-left: 12px;
}

/* Inventory area */
.inventory-area {
    max-width: 980px;
    margin: 0 auto 48px;
    background: transparent;
    padding: 12px;
}

/* low-stock row highlight */
.low { background: #fff3cd !important; }

.small { font-size: .9rem; }

/* Simple modal shim used by the inventory UI (kept minimal) */
.modal { display: none; background: rgba(0,0,0,.4); position: fixed; inset: 0; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-dialog { max-width: 520px; }

/* Utilities */
.gap-2 { gap: 0.5rem; }

/* Login page styles */
.login-container {
    width: min(92vw, 420px);
    background: white;
    padding: 28px 28px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-height: 92vh;
    overflow: auto;
}
.login-container h2 {
    margin: 0 0 16px 0;
    text-align: center;
    color: #007BFF;
    font-size: 1.4rem;
}
.input-group { margin-bottom: 14px; text-align: left; }
.input-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}
.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}
.login-container button:hover { background-color: #0056b3; }