/* styles.css - Diseño Moderno UX/UI Responsive */
:root {
  /* Nueva paleta de colores profesional */
  --primary: #2563eb;       /* Azul vibrante */
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #64748b;     /* Gris neutro */
  --accent: #10b981;        /* Verde esmeralda */
  --dark: #1e293b;          /* Azul oscuro */
  --light: #f8fafc;         /* Blanco suave */
  --text: #334155;          /* Gris oscuro para texto */
  --text-light: #64748b;
  --bg: #f1f5f9;           /* Fondo gris claro */
  --card-bg: #ffffff;       /* Fondo de tarjetas */
  --border: #e2e8f0;       /* Bordes sutiles */
  --error: #ef4444;        /* Rojo para errores */
  --success: #10b981;      /* Verde para éxito */

  /* Sombras modernas */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y tipografía */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout principal */
.dashboard {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar moderno */
.sidebar {
  width: 280px;
  background: var(--dark);
  color: var(--light);
  padding: 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow);
}

.user-info h3 {
  color: var(--light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-info p {
  color: var(--light);
  opacity: 0.8;
  font-size: 0.85rem;
}

.nav-menu {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 0.5rem;
}

.nav-menu a {
  display: flex;
  align-items: center;
  color: var(--light);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-menu a:hover, 
.nav-menu a.active {
  background: var(--primary);
  color: white;
  transform: translateX(4px);
}

.nav-menu i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Contenido principal */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  min-height: 100vh;
  background-color: var(--bg);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.header h1 {
  color: var(--dark);
  font-size: 1.8rem;
  font-weight: 700;
}

/* Componentes comunes */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Formularios */
.form-container, 
.report-container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input, 
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--card-bg);
}

.form-group input:focus, 
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Login */
.login-container {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  margin: 2rem auto;
  border: 1px solid var(--border);
}

.login-container img {
  width: 160px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Mensajes */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  color: var(--success);
  background-color: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success);
}

.alert-error {
  color: var(--error);
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--error);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
    padding: 1.25rem;
  }
  
  .main-content {
    margin-left: 240px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    z-index: 100;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Efectos modernos */
.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.focus-ring:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  outline: none;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.3s ease-out forwards;
}