/* styles.css - Estilos globales para InveSmart */

/* Reset básico y tipografía */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacOSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0f172a;      /* dark slate */
  color: #f1f5f9;                 /* slate-100 */
  line-height: 1.6;
  min-height: 100vh;
}

/* Colores principales (variables) */
:root {
  --primary: #10b981;             /* emerald-500 */
  --primary-dark: #059669;        /* emerald-600 */
  --primary-hover: #047857;       /* emerald-700 */
  --dark-bg: #0f172a;             /* slate-900 */
  --card-bg: #1e293b;             /* slate-800 */
  --input-bg: #111827;            /* gray-900 */
  --border: #334155;              /* slate-700 */
  --text-muted: #94a3b8;          /* slate-400 */
  --success: #16a34a;             /* green-600 */
  --success-bg: rgba(22, 163, 74, 0.2);
  --error: #dc2626;               /* red-600 */
  --error-bg: rgba(220, 38, 38, 0.2);
  --info: #3b82f6;                /* blue-500 */
  --info-bg: rgba(59, 130, 246, 0.2);
}

/* Contenedores principales */
.container {
  max-width: 1280px; /* 7xl = 1280px */
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
nav {
  background-color: #0f172a;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

nav .flex {
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

/* Botones principales */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-danger {
  background-color: #dc2626;
  color: white;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: rgba(16, 185, 129, 0.1);
}

/* Tarjetas / Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Inputs y formularios */
.input {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.input::placeholder {
  color: #6b7280; /* gray-500 */
}

/* Mensajes de alerta */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
}

.alert-success {
  background-color: var(--success-bg);
  border: 1px solid #16a34a;
  color: #bbf7d0;
}

.alert-info {
  background-color: var(--info-bg);
  border: 1px solid #3b82f6;
  color: #bfdbfe;
}

.alert-error {
  background-color: var(--error-bg);
  border: 1px solid #dc2626;
  color: #fecaca;
}

/* Utilidades rápidas */
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.break-all { word-break: break-all; }
.select-all { user-select: all; }

/* Footer */
footer {
  background-color: #0f172a;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  color: #64748b;
  font-size: 0.875rem;
  text-align: center;
}