.dashboard {
  padding: 0 20px;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header .muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 36px;
}

.card {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  padding: 24px 26px;
  display: grid;
  gap: 18px;
  min-height: 150px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.card-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #0f172a;
  font-size: 0.95rem;
}

.bg-blue-100 {
  background: #e0f2fe;
}

.bg-yellow-100 {
  background: #fef9c3;
}

.bg-red-100 {
  background: #fee2e2;
}

.bg-slate-100 {
  background: #f1f5f9;
}

.bg-green-100 {
  background: #dcfce7;
}

.bg-orange-100 {
  background: #ffedd5;
}

.card-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: #0f172a;
}

.card-value.success {
  color: #1d4ed8;
}

.card-value.warning {
  color: #d97706;
}

.card-value.danger {
  color: #dc2626;
}

.card-caption {
  color: #64748b;
  font-size: 0.92rem;
}

.dashboard-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.panel-table {
  overflow: auto;
  padding: 0;
}

.panel-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.panel-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.table {
  border-collapse: collapse;
  font-size: 0.95rem;
  width: 100%;
}

.table thead {
  background: #fafaf8;
}

/* Modern table style: dark header, rounded card, avatar rows */
.panel.panel-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(2,6,23,0.04);
}

.panel.panel-table .panel-header {
  background: #0b1220;
  color: #ffffff;
  border-bottom: 0;
  padding: 18px 20px;
}

.panel.panel-table .panel-header h2 {
  color: #e6eefc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.panel.panel-table .table thead {
  background: transparent;
}

.panel.panel-table .table th {
  color: rgba(255,255,255,0.95);
  border-bottom: 0;
  padding: 14px 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.panel.panel-table .table td {
  padding: 16px 18px;
  vertical-align: middle;
  background: #ffffff;
}

.panel.panel-table .table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.user-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(2,6,23,0.06);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  color: #0f172a;
}

.user-email {
  color: #94a3b8;
  font-size: 0.85rem;
}

.action-link {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
}

.table .status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.status-active {
  background: #dcfce7;
  color: #065f46;
}

.status-inactive {
  background: #fee2e2;
  color: #7f1d1d;
}

.table th {
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  padding: 14px 20px;
  text-align: left;
}

.table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table .numeric {
  text-align: right;
}

.table .status {
  text-align: center;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  text-align: center;
  white-space: nowrap;
}

.badge-paid {
  background: #e7f5ef;
  color: #124d42;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-overdue,
.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 760px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .table {
    font-size: 0.8rem;
  }

  .table th,
  .table td {
    padding: 8px 12px;
  }
}

@media (max-width: 760px) {
  .dashboard {
    padding: 0 12px;
  }

  .cards {
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 24px;
  }

  .card {
    padding: 18px;
  }

  .dashboard-grid {
    gap: 18px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

  .panel-header {
    padding: 16px 18px;
  }

  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef2ff;
  padding: 24px;
}

.auth-page-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 920px);
  background: white;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(15, 79, 68, 0.08);
  overflow: hidden;
}

.auth-brand {
  background: linear-gradient(135deg, #4b7dff 0%, #7d9dff 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 40px;
}

.auth-brand-inner {
  text-align: left;
  max-width: 340px;
}

.auth-brand h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.auth-brand-copy {
  font-size: 1rem;
  margin-bottom: 30px;
  opacity: 0.94;
}

.auth-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: white;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.auth-form {
  background: #fbfbff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 40px;
}

.auth-card {
  width: 100%;
  background: white;
  border-radius: 28px;
  padding: 42px 36px;
  box-shadow: 0 24px 60px rgba(15, 79, 68, 0.08);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 34px;
}

.auth-card-header h2 {
  font-size: 2rem;
  margin: 0;
}

.auth-card-header p {
  margin: 10px 0 0;
  color: #6b7b8c;
  font-size: 0.95rem;
}

.auth-card .field {
  margin-bottom: 20px;
}

.auth-card label {
  color: #333;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a95a6;
  font-size: 0.95rem;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  background: #f4f7ff;
  border: 1px solid #dfe6ff;
  border-radius: 999px;
  font-size: 1rem;
  padding: 14px 18px 14px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
  border-color: #4b7dff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(75, 125, 255, 0.16);
}

.auth-card input[type="submit"] {
  background: #4b7dff;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 18px;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(75, 125, 255, 0.22);
}

.auth-card .remember-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b7b8c;
  font-size: 0.95rem;
}

.auth-card-footer {
  margin-top: 24px;
  text-align: center;
}

.auth-card-footer .link-button,
.auth-card-footer a {
  color: #4b7dff;
  font-size: 0.95rem;
  text-decoration: none;
}

.auth-card-footer .link-button:hover,
.auth-card-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .auth-page-card {
    grid-template-columns: 1fr;
  }

  .auth-brand,
  .auth-form {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 16px;
  }

  .auth-page-card {
    width: 100%;
    border-radius: 24px;
  }

  .auth-form,
  .auth-brand {
    padding: 28px 20px;
  }

  .auth-card {
    padding: 32px 24px;
  }
}
.sidebar {
  background: #ffffff;
  color: #334155;
  display: flex;
  flex-direction: column;
  grid-row: 1 / -1;
  grid-column: 1;
  padding: 18px 16px;
  transition: width 0.25s ease;
  width: 260px;
  border-radius: 0px;
  box-shadow: 0 10px 20px rgba(45,55,72,0.08);
  overflow: hidden;
}

.sidebar.close {
  width: 65px;
}

.sidebar.close .brand,
.sidebar.close .sidebar-user-email,
.sidebar.close .icon-button {
  display: none;
}

.sidebar.close .sidebar-toggle .toggle-icon {
  transform: rotate(180deg);
}

.sidebar.close .sidebar-nav,
.sidebar.close .sidebar-footer span {
  text-align: center;
}

.sidebar.close .nav-link {
  padding: 10px;
  text-align: center;
}

.sidebar.close .link-button {
  font-size: 0;
}

.sidebar .brand {
  color: #0f172a;
  font-size: 1.15rem;
  text-decoration: none;
}

.icon-button {
  background: #eef2ff;
  border: 0;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.icon-button:hover {
  background: #e6eefc;
  transform: translateY(-1px);
}

.sidebar-toggle {
  align-items: center;
  background: rgba(15, 23, 42, 0.06);
  border: 0;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 6px;
  width: 36px;
  height: 36px;
  margin-left: auto;
}

.sidebar-header {
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  padding: 0px 0px 22px;
  gap: 10px;
}

.sidebar-header span,
.sidebar-footer span,
.sidebar-user-email {
  color: #64748b;
  font-size: 0.9rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  padding: 18px 0;
}

.nav-link {
  border-radius: 10px;
  color: #0f172a;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-link i {
  width: 28px;
  text-align: center;
  color: #60a5fa;
}

.nav-link:hover {
  background: #f1f5ff;
}

.nav-link.active {
  background: #dfe2ff;

}

.sidebar-footer {
  border-top: 1px solid #f1f5f9;
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 18px 8px 0;
}

.sidebar .link-button {
  color: #0f172a;
  justify-self: start;
}

.btn {
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
}

.doc-btn {
  background: #1e293b;
  color: #fff;
}

.pro-btn {
  background: #6366f1;
  color: #fff;
}

@media (max-width: 850px) {
  .sidebar {
    grid-row: 2;
    grid-column: 1;
    min-height: auto;
    padding: 12px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar-header,
  .sidebar-footer {
    border: 0;
    padding: 0;
  }

  .sidebar-header .icon-button {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
  }
}

/* Mobile overlay behavior for small/medium screens */
@media (max-width: 850px) {
  .sidebar {
    position: fixed;
    left: -320px;
    top: 64px;
    height: calc(100% - 64px);
    width: 260px;
    transition: left 0.25s ease, transform 0.25s ease;
    z-index: 60;
    box-shadow: 0 12px 30px rgba(2,6,23,0.12);
    background: #ffffff;
  }

  .sidebar.open {
    left: 8px;
  }

  .app-shell.sidebar-open {
    overflow: hidden;
  }

  .app-shell.sidebar-open .content {
    pointer-events: none;
    filter: blur(0.3px);
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  color-scheme: light;
  --background: #eef2ff;
  --border: #d9d6cc;
  --ink: #1d1d1b;
  --muted: #66645e;
  --surface: #ffffff;
  --accent: #176b5d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  grid-row: 1;
  grid-column: 2;
}

.navbar-brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.navbar-actions {
  margin-left: auto;
}

.search-input {
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  padding: 8px 12px;
  width: 240px;
}

.search-input::placeholder {
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  transition: grid-template-columns 0.25s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 65px minmax(0, 1fr);
}

.content {
  grid-row: 2;
  grid-column: 2;
  margin: 0 auto;
  overflow-y: auto;
  padding: 48px 32px;
  width: 100%;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"] {
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

input[type="submit"],
button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
}

.link-button {
  background: none;
  color: var(--accent);
  font-weight: 500;
  padding: 0;
}

.flash {
  border-radius: 6px;
  margin: 0 0 20px;
  padding: 10px 12px;
}

.flash.notice {
  background: #e7f5ef;
  color: #124d42;
}

@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 64px auto minmax(0, 1fr);
  }

  .navbar {
    grid-row: 1;
    grid-column: 1;
  }

  .sidebar {
    grid-row: 2;
    grid-column: 1;
    min-height: auto;
    padding: 16px;
  }

  .content {
    grid-row: 3;
    grid-column: 1;
  }

  .sidebar-footer {
    border: 0;
    padding: 0;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .content,
  .auth-page {
    padding: 28px 16px;
  }
}

.button {
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 18px;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box; /* Asegura que el padding no estire el botón más del 100% */
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75, 125, 255, 0.3);
}

.button.red {
  background: #f13760;
}

.button.blue {
  background: #4b7dff;
}




