/* panel_admin.css - Dark Elegant Style */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #1e293b; /* gris azulado oscuro */
    color: #f1f5f9;
    line-height: 1.5;
  }
  
  .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
  }
  
  /* HEADER */
  .header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #38bdf8; /* azul claro */
  }
  
  .header p {
    color: #dae5f5;
    font-size: 0.95rem;
  }

  .usuario-label {
    font-size: 1rem;
  }

  /* SECTION */
  .section {
    background: #0f172a;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8fafc;
  }
  
  

  .refresh-btn {
    background: #82cbfc;
    color: #080a11;
    border: none;
    border-radius: 0.5rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .refresh-btn:hover {
    background: #007bff;
    color: #fff;
  }

  .btn-envio-whatsapp {
    background: #49fc76;
    color: #080a11;
    border: none;
    border-radius: 0.5rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    cursor: pointer;
    
    transition: all 0.3s;
  }
  
  .btn-envio-whatsapp:hover {
    background: #0b992f;
    color: #fff;
  }
  
  /* NAV CARDS */
  .nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #1e293b;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #f1f5f9;
    border: 1px solid #334155;
    transition: all 0.3s;
  }
  
  .nav-card:hover {
    background: #111920;
    
    transform: translateY(-3px);
  }
  
  .nav-card-icon {
    font-size: 1.8rem;
  }
  
  .nav-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
  }
  
  .nav-card-content p {
    font-size: 0.85rem;
    color: #94a3b8;
  }
  
  /* STAT CARDS */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .stat-card {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid #334155;
    transition: all 0.3s;
  }
  
 
  
  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-number {
    font-size: 1.4rem;
    font-weight: bold;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
  }
  
  /* TABLES */
  .tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .table-container {
    background: #1e293b;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    overflow: hidden;
  }
  
  .table-header {
    padding: 0.8rem 1rem;
    font-weight: 600;
    background: #82cbfc;
    color: #05070a;
  }
  
  .table-wrapper {
    overflow-x: auto;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
  }
  
  table thead {
    background: #0f172a;
    color: #38bdf8;
  }
  
  table th, table td {
    padding: 0.8rem;
    font-size: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #334155;
  }
  
  .total-row td {
    font-weight: 600;
    background: #0f172a;
    color: #38bdf8;
  }
  
  .badge {
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  .badge.active {
    background: #22c55e;
    color: #fff;
  }
  
  .badge.inactive {
    background: #ef4444;
    color: #fff;
  }
  
  .nav-card:hover {
    background: #04325ed5; /* azul más fuerte pero no tan claro */
    color: #fff;         /* mantiene blanco el texto */
  }
  
  .nav-card:hover .nav-card-content p {
    color: #e2e8f0; /* gris clarito para subtítulos */
  }
  
  .btn.cerrar {
    background-color: #ef5350;
    color: white;
    padding: 8px 11px;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btn.cerrar:hover {
    background-color: #c62828;
  }

  .user-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
    gap: 1rem;
  }

  

  



  /* RESPONSIVE */
  @media (max-width: 768px) {
    .tables-grid {
      grid-template-columns: 1fr;
    }

    .btn-derecha {
      font-size: 0.5rem;
    }

    .usuario-label {
      font-size: 0.8rem;
    }
  }

  /* Grid 2x2 para estadísticas en pantallas pequeñas */
  @media (max-width: 480px) {
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 415px) {
    .tables-grid {
      grid-template-columns: 1fr;
    }

    .btn-derecha {
      font-size: 0.5rem;
    }

    .usuario-label {
      font-size: 0.7rem;
    }
  }


    