:root {
  /* Colors - Dark Amber Theme */
  --bg-main: #0a0a0a;
  --bg-card: rgba(20, 20, 20, 0.7);
  --bg-input: rgba(40, 40, 40, 0.5);
  
  --primary: #ffab00;
  --primary-hover: #ffd600;
  --secondary: #333333;
  --text-main: #FFFFFF;
  --text-muted: #A0A0A0;
  
  --success: #69f0ae;
  --danger: #ff5252;
  
  /* Layout */
  --radius: 12px;
  --shadow: 0 8px 16px rgba(0,0,0,0.4);
}

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

body {
  background-color: var(--bg-main);
  background-image: linear-gradient(rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.3)), url('../img/fondo.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 480px; /* Mobile focused */
  margin: 0 auto;
  padding: 20px;
}

.admin-container {
  max-width: 1200px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid #444;
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.3);
}

.input-plate {
  font-size: 2rem !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: bold;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #444;
}

.btn-success {
  background-color: var(--success);
  color: white;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--primary);
}

.app-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

/* Alerts / Notifications */
.alert {
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  display: none;
}

.alert-success {
  background-color: rgba(0, 200, 83, 0.2);
  border: 1px solid var(--success);
  color: #69f0ae;
}

.alert-danger {
  background-color: rgba(213, 0, 0, 0.2);
  border: 1px solid var(--danger);
  color: #ff8a80;
}

/* Loader */
.loader {
  display: none;
  border: 4px solid rgba(255,255,255,0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Specific Login styles */
.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.brand-title {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.brand-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

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

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  margin: 10px 0;
}

/* Tables (Admin) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  background-color: #2a2a2a;
  color: var(--primary);
  font-weight: 600;
}

tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

#print-area {
    display: none;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
    display: block !important;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: black !important;
    background: white !important;
    padding: 10px;
  }
  .no-print {
    display: none !important;
  }
}

.btn-currency { flex: 1; background-color: var(--bg-input); color: var(--text-muted); border: 1px solid #444; padding: 12px; font-size: 1.1rem; border-radius: var(--radius); transition: all 0.2s; cursor: pointer; }
.btn-currency.active { background-color: var(--primary); color: #000; border-color: var(--primary); font-weight: bold; }
