/* style.css - Black & Golden Yellow Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #050505;
  --surface-color: #111111;
  --surface-color-light: #1a1a1a;
  --accent-color: #FACC15; /* Golden Yellow */
  --accent-hover: #EAB308;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --border-color: rgba(250, 204, 21, 0.2);
  --error: #EF4444;
  --success: #10B981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism & UI Utilities */
.glass-panel {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.golden-text {
  color: var(--accent-color);
}

.text-center { text-align: center; }

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: #000;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(250, 204, 21, 0.1);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--surface-color-light);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

select.form-control {
  appearance: none;
}

/* Radio Toggles */
.role-toggle {
  display: flex;
  background: var(--surface-color-light);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1.5rem;
}

.role-toggle input[type="radio"] {
  display: none;
}

.role-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.role-toggle input[type="radio"]:checked + label {
  background: var(--accent-color);
  color: #000;
  font-weight: 600;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}
.nav-brand span {
  color: var(--accent-color);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}

/* Layouts */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2rem;
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface-color);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color);
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-warning { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #EF4444; }

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem;}
.alert-error { background: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-success { background: rgba(16, 185, 129, 0.1); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.2); }

/* Barcode Simulation */
.barcode-container {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
}
.barcode-lines {
  height: 80px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #000,
    #000 3px,
    #fff 3px,
    #fff 6px,
    #000 6px,
    #000 7px,
    #fff 7px,
    #fff 11px,
    #000 11px,
    #000 15px,
    #fff 15px,
    #fff 18px
  );
}
.barcode-text {
  color: #000;
  font-family: monospace;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 4px;
}
