/* ==============================
   DASHBOARD STYLE
   ============================== */

   @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

   :root {
     --bg-light: #2f2f2f;
     --bg-dark: #2c3e50;
     --primary: #3498db;
     --primary-hover: #2980b9;
     --accent: #1abc9c;
     --text-dark: #2c3e50;
     --text-light: #ecf0f1;
     --card-bg: #fff;
     --border-color: #ddd;
   }
   
   * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Inter', sans-serif;
   }
   
   body {
     background: var(--bg-light);
     color: var(--text-dark);
     min-height: 100vh;
     display: flex;
     flex-direction: column;
   }
   
   /* ====== LOGIN / REGISTER ====== */
   
   .auth-container {
     display: flex;
     justify-content: center;
     align-items: center;
     /*flex: 1;*/
     margin-top: 30px;
   }
   
   .auth-box {
     background: var(--card-bg);
     padding: 2rem;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0,0,0,0.1);
     width: 100%;
     max-width: 400px;
     text-align: center;
   }
   
   .auth-box h1 {
     margin-bottom: 1.5rem;
     font-size: 1.8rem;
     color: var(--primary);
   }
   
   .auth-box input {
     width: 100%;
     padding: 0.75rem;
     margin: 0.5rem 0;
     border: 1px solid var(--border-color);
     border-radius: 8px;
     font-size: 1rem;
   }
   
   .auth-box button {
     width: 100%;
     padding: 0.9rem;
     margin-top: 1rem;
     border: none;
     border-radius: 8px;
     background: var(--primary);
     color: white;
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.3s ease;
   }
   
   .auth-box button:hover {
     background: var(--primary-hover);
   }
   
   .auth-box a {
     display: inline-block;
     margin-top: 1rem;
     color: var(--primary);
     text-decoration: none;
     font-size: 0.9rem;
   }
   
   .auth-box a:hover {
     text-decoration: underline;
   }
   
   /* ====== DASHBOARD ====== */
   
   .dashboard {
     display: flex;
     min-height: 100vh;
   }
   
   .sidebar {
     width: 240px;
     background: var(--bg-dark);
     color: var(--text-light);
     display: flex;
     flex-direction: column;
     padding: 1rem;
   }
   
   .sidebar h2 {
     color: var(--text-light);
     margin-bottom: 2rem;
     text-align: center;
   }
   
   .sidebar a {
     padding: 0.75rem 1rem;
     margin: 0.3rem 0;
     border-radius: 6px;
     color: var(--text-light);
     text-decoration: none;
     font-weight: 500;
     transition: background 0.2s ease;
   }
   
   .sidebar a:hover {
     background: var(--primary);
   }
   
   .main {
     flex: 1;
     padding: 2rem;
   }
   
   .topbar {
     display: flex;
     justify-content: flex-end;
     align-items: center;
     margin-bottom: 2rem;
   }
   
   .topbar button {
     background: var(--accent);
     border: none;
     padding: 0.6rem 1rem;
     border-radius: 6px;
     color: white;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.3s ease;
   }
   
   .topbar button:hover {
     background: #16a085;
   }
   
   .card-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
     gap: 1.5rem;
   }
   
   .card {
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: 0 2px 8px rgba(0,0,0,0.05);
     transition: transform 0.2s ease;
   }
   
   .card:hover {
     transform: translateY(-4px);
   }
   
   .card h3 {
     margin-bottom: 1rem;
     color: var(--primary);
   }
   

   .btn-primary, .btn-danger {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease;
  }
  
  .btn-primary {
    background: var(--primary);
  }
  .btn-primary:hover {
    background: var(--primary-hover);
  }
  
  .btn-danger {
    background: #e74c3c;
  }
  .btn-danger:hover {
    background: #c0392b;
  }

  .btn-accent {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .btn-accent:hover {
    background: #16a085;
  }

  /* ====== CHECKBOX + LABEL ====== */
  .checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    cursor: pointer;
    white-space: nowrap; /* 👈 evita que se corte en varias líneas */
  }
  
  .checkbox-container input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
  }
  
  .checkbox-container a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .checkbox-container a:hover {
    text-decoration: underline;
  }

