* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f4f6f9; color: #333; }

nav { background: #1a365d; color: #fff; padding: 0 2rem; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; height: 56px; }
.nav-inner a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.2rem; }
.nav-links { display: flex; gap: 1rem; align-items: center; flex: 1; }
.nav-links a { opacity: .8; }
.nav-links a:hover { opacity: 1; }
.nav-logout { margin-left: auto; font-size: .85rem; }

main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }

h1 { font-size: 1.6rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.stats { display: flex; gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: 8px; padding: 1.2rem 2rem; flex: 1; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat-num { display: block; font-size: 2rem; font-weight: 700; }
.stat-label { font-size: .85rem; color: #666; text-transform: uppercase; letter-spacing: .5px; }
.stat-card.orange .stat-num { color: #c05621; }

.row { display: flex; gap: 2rem; }
.col { flex: 1; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 1rem; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #edf2f7; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #4a5568; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f7fafc; }

.status-available, .status-returned { color: #2f855a; font-weight: 600; }
.status-rented, .status-active { color: #c05621; font-weight: 600; }
.status-retired { color: #a0aec0; font-weight: 600; }

.tag { display: inline-block; padding: .15rem .5rem; border-radius: 3px; font-size: .75rem; font-weight: 600; }
.tag-skis { background: #bee3f8; color: #2a4365; }
.tag-boots { background: #c6f6d5; color: #22543d; }
.tag-poles { background: #fefcbf; color: #744210; }
.tag { background: #e2e8f0; color: #2d3748; }

.actions { white-space: nowrap; }
.actions form { display: inline; }

.btn, button[type=submit] { display: inline-block; padding: .5rem 1rem; border: none; border-radius: 5px; background: #1a365d; color: #fff; font-size: .9rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: #2a4a7f; }
.btn-secondary { background: #718096; }
.btn-secondary:hover { background: #4a5568; }
.btn-sm { display: inline-block; padding: .3rem .6rem; font-size: .8rem; border-radius: 4px; background: #e2e8f0; color: #333; text-decoration: none; border: none; cursor: pointer; }
.btn-sm:hover { background: #cbd5e0; }
.btn-danger { background: #fc8181; color: #fff; }
.btn-danger:hover { background: #f56565; }
.btn-success { background: #68d391; color: #fff; }
.btn-success:hover { background: #48bb78; }

.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.header-row h1 { margin-bottom: 0; }

.form-page { max-width: 700px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .25rem; color: #4a5568; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .5rem .7rem; border: 1px solid #cbd5e0; border-radius: 5px; font-size: .9rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1a365d; box-shadow: 0 0 0 2px rgba(26,54,93,.15); }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-actions { display: flex; gap: .5rem; margin-top: 1.5rem; }
.help { font-size: .75rem; color: #666; margin-top: .25rem; }
.opt { font-weight: 400; color: #666; }

.login-page { max-width: 400px; margin: 4rem auto; }
.login-page h1 { text-align: center; }
.login-page .card { background: #fff; border-radius: 8px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.alert { padding: .75rem 1rem; border-radius: 5px; margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: #fed7d7; color: #9b2c2c; border: 1px solid #feb2b2; }

.eq-grid { display: flex; gap: 1rem; margin-bottom: 2rem; }
.eq-card { flex: 1; background: #fff; border-radius: 8px; padding: 1.2rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-top: 4px solid; }
.eq-card.skis { border-top-color: #2b6cb0; }
.eq-card.boots { border-top-color: #38a169; }
.eq-card.poles { border-top-color: #d69e2e; }
.eq-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.eq-card .count { font-size: 1.8rem; font-weight: 700; }
.eq-card.skis .count { color: #2b6cb0; }
.eq-card.boots .count { color: #38a169; }
.eq-card.poles .count { color: #d69e2e; }
.eq-card .sublabel { font-size: .8rem; color: #666; }
.eq-card:not(.skis):not(.boots):not(.poles) { border-top-color: #805ad5; }
.eq-card:not(.skis):not(.boots):not(.poles) .count { color: #805ad5; }

.eq-fieldset { border: 1px solid #cbd5e0; border-radius: 5px; padding: 1rem; margin-bottom: 1rem; }
.eq-fieldset legend { font-weight: 600; padding: 0 .5rem; }
.eq-select { height: 120px; }
