/* ========================================
   CSS Reset & Variables
   ======================================== */
:root {
  /* Primary - Blue */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;

  /* Neutrals */
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;

  /* Accents */
  --accent: #f8fafc;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;

  /* Dark box */
  --dark-bg: #1e293b;
  --dark-text: #f8fafc;

  /* Radius */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--muted);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

/* ========================================
   App Layout
   ======================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0; /* Prevents flex item from overflowing */
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 4rem; /* Space for tabbar */
}

@media (min-width: 768px) {
  .main-content {
    padding-bottom: 0;
    margin-left: 240px;
  }
}

/* ========================================
   Sidebar (Desktop)
   ======================================== */
.sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: var(--background);
  border-right: 1px solid var(--border);
  flex-direction: column;
  z-index: 40;
}

@media (min-width: 768px) {
  .sidebar {
    display: flex;
  }
}

.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-link .icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.nav-link--active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.nav-link--inactive {
  color: var(--muted-foreground);
}

.nav-link--inactive:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

/* ========================================
   Header
   ======================================== */
.header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: 100%;
  overflow: visible;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-top {
    padding: 1rem 1.5rem;
  }
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  text-transform: capitalize;
}

@media (min-width: 768px) {
  .header-title {
    font-size: 1.125rem;
  }
}

/* User Pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  background-color: var(--muted);
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease;
}

.user-pill:hover {
  background-color: var(--border);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar .icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.user-info {
  text-align: left;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
}

.user-rol {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.2;
}

.user-matricula {
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--muted-foreground);
  line-height: 1.2;
}

/* User Dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 100;
}

.user-dropdown.active {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background-color 0.15s ease;
}

.user-dropdown a:hover {
  background-color: var(--muted);
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Search Bar */
.header-bottom {
  padding: 0 1rem 0.75rem;
}

@media (min-width: 768px) {
  .header-bottom {
    padding: 0 1.5rem 1rem;
  }
}

.search-bar {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
}

.search-bar select {
  height: 2rem;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background-color: var(--background);
  color: var(--foreground);
  min-width: 100px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .search-bar select {
    height: 2.25rem;
    font-size: 0.875rem;
    min-width: 140px;
  }
}

.search-bar select:focus {
  outline: none;
  border-color: var(--primary);
}

.search-bar input[type="text"] {
  flex: 1;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .search-bar input[type="text"] {
    height: 2.25rem;
    font-size: 0.875rem;
  }
}

.search-bar input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}

.search-bar input[type="text"]::placeholder {
  color: var(--muted-foreground);
}

.search-bar button {
  height: 2rem;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background-color 0.15s ease;
}

@media (min-width: 768px) {
  .search-bar button {
    height: 2.25rem;
    width: 2.25rem;
  }
}

.search-bar button:hover {
  background-color: var(--primary-hover);
}

.search-bar button .icon {
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 768px) {
  .search-bar button .icon {
    width: 1rem;
    height: 1rem;
  }
}

/* ========================================
   Page Wrapper
   ======================================== */
.page-wrapper {
  flex: 1;
  padding: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .page-wrapper {
    padding: 1rem 1.5rem;
  }
}

/* ========================================
   View Main
   ======================================== */
.view-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .view-main {
    gap: 1rem;
  }
}

/* ========================================
   Table Panel
   ======================================== */
.table-panel {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 23.5rem; /* Prevents layout shift with fewer items */
}

@media (min-width: 768px) {
  .table-scroll {
    min-height: 28.5rem;
  }
}

/* Custom Scrollbar */
.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: var(--muted);
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Data Table */
.data-table {
  width: 100%;
  min-width: 700px;
  font-size: 0.6875rem;
}

@media (min-width: 768px) {
  .data-table {
    font-size: 0.8125rem;
  }
}

.data-table__head {
  background-color: var(--muted);
}

.table-th {
  padding: 0.5rem 0.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .table-th {
    padding: 0.75rem 1rem;
  }
}

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

.data-table__body .data-row {
  transition: background-color 0.15s ease;
}

.data-table__body .data-row:hover {
  background-color: var(--accent);
}

.table-td {
  padding: 0.5rem 0.5rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .table-td {
    padding: 0.625rem 1rem;
  }
}

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

.table-empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

/* Saldo Total Row */
.saldo-total-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--accent);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .saldo-total-row {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}

.saldo-total-row strong {
  font-weight: 600;
  color: var(--foreground);
}

.saldo-total-row span {
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   Pagination Panel
   ======================================== */
.pagination-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

@media (min-width: 640px) {
  .pagination-panel {
    padding: 0.875rem 1rem;
  }
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

@media (min-width: 768px) {
  .page-btn {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.8125rem;
  }
}

.page-btn:hover:not(.page-btn--disabled):not(.page-btn--active) {
  background-color: var(--muted);
  border-color: var(--muted-foreground);
}

.page-btn--active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page-btn .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.page-ellipsis {
  padding: 0 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* Actions Wrapper */
.actions-wrapper {
  position: relative;
}

.btn-print {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

@media (min-width: 768px) {
  .btn-print {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

.btn-print:hover {
  background-color: var(--muted);
  border-color: var(--muted-foreground);
}

.btn-print .icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* Actions Dropdown */
.actions-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 50;
}

.actions-dropdown.active {
  display: block;
}

.actions-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--foreground);
  background: none;
  border: none;
  text-align: left;
  transition: background-color 0.15s ease;
}

.actions-dropdown button:hover {
  background-color: var(--muted);
}

.actions-dropdown button .icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  padding: 1rem;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .info-box {
    padding: 1.25rem 1.5rem;
  }
}

.info-box__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-box__title .icon {
  width: 1rem;
  height: 1rem;
}

.info-box__text {
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .info-box__text {
    font-size: 0.8125rem;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.footer p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer a {
  color: var(--primary);
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========================================
   Tab Bar (Mobile)
   ======================================== */
.tab-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  z-index: 50;
}

@media (min-width: 768px) {
  .tab-bar {
    display: none;
  }
}

.tab-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.tab-bar__item svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

.tab-bar__item.active {
  color: var(--primary);
}

.tab-bar__item:not(.active):hover {
  color: var(--foreground);
}

/* ========================================
   Utility: Icons
   ======================================== */
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-small {
  width: 1rem;
  height: 1rem;
}

/* ========================================
   Estilos de Perfil y Profesional
   ======================================== */

/* Container */
.container-lg {
  width: 100%;
  max-width: 100%;
}

/* Panel Card */
.panel-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Panel Header */
.panel-header {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .panel-header {
    padding: 1rem 1.25rem;
  }
}

.panel-header--gradient {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--background) 100%
  );
}

.panel-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

@media (min-width: 768px) {
  .panel-title {
    font-size: 1.0625rem;
  }
}

.panel-subtitle {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .panel-subtitle {
    font-size: 0.75rem;
  }
}

/* Panel Header 2 (Info box style) */
.panel-header-2 {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

@media (min-width: 768px) {
  .panel-header-2 {
    padding: 0.875rem 1.25rem;
  }
}

.panel-header-2--gradient {
  background-color: var(--dark-bg);
}

.panel-header-2--gradient .panel-title {
  color: var(--dark-text);
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.panel-header-2--gradient .panel-subtitle {
  color: var(--dark-text);
  opacity: 0.85;
  font-size: 0.6875rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .panel-header-2--gradient .panel-subtitle {
    font-size: 0.75rem;
  }
}

/* Panel Body */
.panel-body {
  flex: 1;
  padding: 0.875rem 1rem;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .panel-body {
    padding: 1.25rem 1.5rem;
    overflow-y: visible;
  }
}

/* Section Title */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--primary-light);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
}

/* Responsive Grid - Perfil */
.responsive-grid {
  display: grid;
  gap: 0.5rem 0.75rem;
}

.responsive-grid-perfil {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .responsive-grid-perfil {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .responsive-grid-perfil {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem 1rem;
  }
}

/* Responsive Grid - Profesional */
.responsive-grid-profesional {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .responsive-grid-profesional {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .responsive-grid-profesional {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem 1rem;
  }
}

/* Field Block */
.field-block {
  min-width: 0;
}

.field-span-2 {
  grid-column: span 1;
}

@media (min-width: 640px) {
  .field-span-2 {
    grid-column: span 2;
  }
}

.field-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.125rem;
}

@media (min-width: 768px) {
  .field-label {
    font-size: 0.6875rem;
    margin-bottom: 0.1875rem;
  }
}

.field-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  word-break: break-word;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .field-value {
    font-size: 0.8125rem;
  }
}

/* Margin utilities */
.mb-6 {
  margin-bottom: 0.75rem;
}

.mb-8 {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mb-6 {
    margin-bottom: 1rem;
  }

  .mb-8 {
    margin-bottom: 1.25rem;
  }
}

/* Note/Observations Value */
.note-value {
  font-size: 0.75rem;
  color: var(--foreground);
  line-height: 1.5;
  background-color: var(--muted);
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

@media (min-width: 768px) {
  .note-value {
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
  }
}

/* Alert Warning */
.alert-warning {
  padding: 1rem;
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  color: #92400e;
  font-size: 0.875rem;
  text-align: center;
}

/* Page wrapper for profile/profesional - no scroll in desktop */
.page-wrapper--fullheight {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 768px) {
  .page-wrapper--fullheight {
    height: calc(100vh - 80px); /* Adjust based on header height */
    overflow: hidden;
  }

  .page-wrapper--fullheight .view-main {
    flex: 1;
    min-height: 0;
  }

  .page-wrapper--fullheight .panel-card {
    max-height: 100%;
  }
}

/* ========================================
   Utility: Screen Reader Only
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   NOT FOUND (404)
   ============================================================ */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}

.not-found__code {
  font-size: 72px;
  font-weight: 500;
  color: var(--gray-200);
  line-height: 1;
  letter-spacing: -0.03em;
}

.not-found__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-900);
}

.not-found__message {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 8px;
}

.not-found .btn-primary {
  display: inline-block;
  padding: 9px 20px;
  font-size: 14px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.not-found .btn-primary:hover {
  background-color: var(--muted);
}

/* RECUPERAR.PHP */

/* Fondo */
.restore-body {
  background: #f4f6f9;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor */
.restore-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

/* Caja */
.restore-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Título */
.restore-title {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
}

/* Texto */
.restore-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  text-align: center;
}

/* Form */
.restore-form {
  display: flex;
  flex-direction: column;
}

/* Grupo */
.form-group {
  margin-bottom: 15px;
}

/* Input */
.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Botón */
.restore-button {
  background: #007bff;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s;
}

.restore-button:hover {
  background: #0056b3;
}

/* Mensaje éxito */
.restore-success {
  margin-top: 15px;
  padding: 10px;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  text-align: center;
}

/* Mensaje error */
.restore-error {
  margin-top: 15px;
  padding: 10px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 6px;
  text-align: center;
}

/* volver al menu */
.restore-container-back {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.restore-back {
  display: inline-block;
  background-color: #ccc;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: var(--accent-foreground);
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s;
}

.restore-back:hover {
  background-color: #bbb;
}

/* Responsive */
@media (max-width: 480px) {
  .restore-content {
    padding: 20px;
  }
}
