body { font-family: 'Segoe UI', Arial, sans-serif; background: #f7f7f7; margin: 0; }
.header { background: #2c3e50; color: #fff; padding: 20px 0; text-align: center; font-size: 2em; letter-spacing: 2px; }
.container { max-width: 600px; margin: 40px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 30px; }
.button { background: #2980b9; color: #fff; border: none; padding: 12px 24px; border-radius: 4px; cursor: pointer; font-size: 1em; margin-top: 20px; }
.button:hover { background: #3498db; }
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 500; }
input, select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ccc; padding: 10px; text-align: left; }
th { background: #ecf0f1; }
.error { color: #e74c3c; text-align: center; margin-bottom: 10px; }

/* Login page styles */
body.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.login-card {
    width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 32px 32px 32px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    letter-spacing: 1px;
    justify-content: left;
}
.login-subtitle {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 28px;
    justify-content: left;
}
.login-card .form-group {
    width: 100%;
    margin-bottom: 18px;
}
.login-card label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}
.login-card input[type="text"], .login-card input[type="password"] {
    width: 94%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    background: #fafafa;
    transition: border 0.2s;
}
.login-card input[type="text"]:focus, .login-card input[type="password"]:focus {
    border-color: #0070f3;
    outline: none;
}
.login-card .button {
    width: 100%;
    padding: 12px;
    background: #0070f3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    /* margin-top removed for alignment */
    transition: background 0.2s;
}
.login-card .button:hover {
    background: #0059c1;
}
.login-card .error {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 16px;
}

/* Inventory page styles */
.inventory-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 32px 24px;
}
.inventory-form .form-group {
    width: 100%;
    margin-bottom: 18px;
}
.inventory-form label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}
.inventory-form input,
.inventory-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    background: #fafafa;
    transition: border 0.2s;
}
.inventory-form input:focus,
.inventory-form select:focus {
    border-color: #0070f3;
    outline: none;
}
.inventory-form .button,
.inventory-form .clear-btn {
    width: 33%;
    min-width: 120px;
    display: block;
}
.inventory-form .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.inventory-form .button {
    width: 60%;
    margin-top: 0px;
    margin-left: auto;
    display: block;
    padding: 12px;
    background: #0070f3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.inventory-form .button:hover {
    background: #0059c1;
}
.inventory-form .clear-btn {
    width: 60%;
    margin-right: auto;
    margin-left: 28%;
    display: block;
    padding: 0px 0px 0px 0px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.inventory-form .clear-btn:hover {
    background: #cccccc;
}