#login-form, #admin-panel {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

input {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

button:hover {
    background: #333;
}

#login-error, #add-error {
    color: red;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

#admin-products .product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

#admin-products button {
    background: #cc0000;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

#pin-display {
    font-size: 2rem;
    letter-spacing: 0.3em;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: monospace;
}

#keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 280px;
    margin: 0 auto;
}

#keypad button {
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

#stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.stat-card.wide {
    grid-column: span 3;
    text-align: left;
}

.stat-card p {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.product-info {
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-form input {
    margin-bottom: 0;
}

.edit-form button {
    width: fit-content;
}

.stock-badge {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: #e8fff0;
    color: #1a6b3a;
}

.stock-badge.low {
    background: #fff0e8;
    color: #6b2a1a;
}