* {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}


/* CENTER AREA */
.container {
	min-height: calc(100vh - 60px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

/* CARD */
.card {
	width: 100%;
	max-width: 360px;
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h3 {
	text-align: center;
	margin-bottom: 20px;
	font-weight: 500;
}

input[type="text"] {
	width: 100%;
	padding: 12px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	font-size: 14px;
	margin-bottom: 15px;
}

.pin-container {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
}

.pin-box {
	width: 40px;
	height: 48px;
	font-size: 18px;
	text-align: center;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #f9fafb;
}

.pin-box:focus {
	border-color: #6b7280;
	background: #fff;
	outline: none;
}

button {
	width: 100%;
	padding: 12px;
	border-radius: 6px;
	border: none;
	background: #6b7280;
	color: white;
	font-size: 14px;
	font-weight: 500;
}

button:hover {
	background: #4b5563;
}

.hidden {
	display: none;
}

#errorBox {
	text-align: center;
	color: red;
	margin-top: 10px;
}

@media (max-width: 360px) {
	.pin-box {
		width: 34px;
		height: 45px;
	}
}

.forgot-btn {
    background: #f3f4f6;
    border: none;
    color: #374151;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.forgot-btn:hover {
    background: #e5e7eb;
}

.premium-confirm {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.premium-confirm .modal-body {
    font-size: 14px;
    color: #1f2937;
}

.premium-confirm .btn-primary {
    background: #334e68;
    border: none;
}

.premium-confirm .btn-primary:hover {
    background: #243b53;
}

.premium-confirm .btn-light {
    background: #f1f5f9;
    border: none;
}

.premium-confirm .btn-light:hover {
    background: #e2e8f0;
}

/* ================= RACK ================= */

.rack-box {
    background: #eef4ff; /* light blue */
    border: 2px solid #4a6fa5;
    border-radius: 10px;
    padding: 12px;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Rack name */
.rack-name {
    background: #d6e4ff;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    border: none;
}

/* ================= SHELVES ================= */

.shelf-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Shelf box */
.shelf-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #4a6fa5;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Shelf input */
.shelf-name {
    border: none;
    background: transparent;
}

/* Hover effect */
.shelf-box:hover {
    background: #f1f5ff;
}

/* Remove button */
.shelf-box button {
    margin-left: auto;
}

.selected-stock-row {
    background-color: #dbeafe !important;
    border-left: 4px solid #2563eb;
    transition: all 0.2s ease;
}

#configTab {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    overflow-x: hidden;
}

.audit-inventory-row {
    background-color: #fff8d6 !important;
}

.zero-stock-row {
    background-color: #ffe5e5 !important;
}

.audit-zero-stock-row {
    background-color: #ffcccc !important;
    font-weight: 600;
}
