/* loginstyle.css - Styles for login.html */
body {
    background: #111;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}
.login-container {
    background: #222;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 350px;
    text-align: center;
}
.login-container h2 {
    margin-bottom: 24px;
    font-size: 2rem;
}
.login-container input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #444;
    background: #181818;
    color: #fff;
    font-size: 1rem;
}
.login-container button {
    width: 100%;
    padding: 12px;
    background: #4a9a2a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: background 0.18s, transform 0.06s;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.login-container button:hover {
    background: #288f00;
}
/* Make anchor with class 'button' match the styling of the form buttons */
/* Buttons used in the actions rows: make them flex items and equal width */
.actions,
.more-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.logout-row {
    display: flex;
    justify-content: center;
}

.actions .button,
.more-actions .button,
.actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* inherit size/padding from .button so all controls match */
    margin-top: 12px;
    transition: background 0.18s, transform 0.06s;
}

/* Logout row buttons should match the action button sizing */
.logout-row button {
    /* let .button/.login-container button control sizing */
    padding: 10px 14px;
}
.logout-row button:hover { background: #288f00; }
.login-container .button:hover,
.button:hover {
    background: #288f00;
}

/* Ensure anchors with .button have no underline */
.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration: none;
    padding: 10px 14px;
    background: #4a9a2a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.06s;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Form actions (login/back) should match the same fixed width buttons */
.form-actions {
    display:flex;
    gap:8px;
    justify-content:center;
}
.form-actions .button,
.form-actions button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    text-decoration: none;
    /* inherit size/padding from .button */
}
.error {
    color: #ff5252;
    margin-top: 10px;
    font-size: 1rem;
}
.protected-content {
    display: none;
    margin-top: 24px;
}

/* Inventory UI styles */
.inventory-container {
    /* full-width strip that centers the inner white card */
    width: 100%;
    background: #f7f7f8; /* page-wide strip color */
    padding: 40px 0; /* vertical spacing for the strip */
    box-sizing: border-box;
    text-align: left;
}
.inventory-container h1 {
    margin: 0 0 12px 0;
    color: #222;
}
.inventory-actions { margin-bottom: 12px; }
.inventory-actions .button { margin-right: 8px; padding: 6px 10px; font-size: 0.88rem; }
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

/* inner centered card inside the full-width strip */
.inventory-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    box-sizing: border-box;
}

/* ensure inner card text is dark and readable against white */
.inventory-inner,
.inventory-inner h1,
.inventory-inner p,
.inventory-inner label,
.inventory-table,
.inventory-table th,
.inventory-table td {
    color: #111;
}

/* allow the table to scroll horizontally on small screens */
.inventory-table-wrapper { overflow-x: auto; }
.inventory-table th,
.inventory-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.inventory-table thead th {
    background: #fafafa;
    font-weight: 700;
}
.inventory-table tr:nth-child(even) td { background: #fbfbfb; }

/* Smaller actions inside table cells to avoid overlap */
.inventory-table td .button { padding: 6px 8px; font-size: 0.86rem; margin-right:6px; }
.inventory-table td { white-space: nowrap; }

.form-wrap {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    max-width: 700px;
    margin: 18px auto;
}
.form-wrap label { display:block; margin-bottom:10px; color:#333; }
.form-wrap input[type="text"], .form-wrap input[type="number"], .form-wrap textarea {
    width:100%; padding:10px; border:1px solid #ddd; border-radius:6px; box-sizing:border-box;
}
.form-row { margin-bottom:12px; }

.inventory-container a.button { background:#4a9a2a; }

