* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

:root {
  --primary-color: #0f5d9a;
  --primary-dark: #08396f;
  --secondary-color: #1e293b;
  --bg-dark: #090a0c;
  --bg-darker: #08080b;
  --card-bg: #111318;
  --border-color: #293443;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f97316;
}

body.light-mode {
  --primary-color: #0f5d9a;
  --primary-dark: #0a3d8f;
  --secondary-color: #f1f5f9;
  --bg-dark: #f8fafc;
  --bg-darker: #ffffff;
  --card-bg: #ffffff;
  --border-color: #9ca4ad;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --success-color: #047857;
  --error-color: #b91c1c;
  --warning-color: #c2410c;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-transitioning,
body.theme-transitioning * {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease !important;
}

body.theme-transitioning {
  animation: themeSwitch 0.3s ease;
}

@keyframes themeSwitch {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
  100% {
    opacity: 1;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
  transition: background-color 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.5);
}

body.light-mode ::-webkit-scrollbar-thumb {
  background-color: rgba(71, 85, 105, 0.3);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(71, 85, 105, 0.5);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

body.light-mode {
  scrollbar-color: rgba(71, 85, 105, 0.3) transparent;
}

/* Indicador de Modo Offline */
body.offline-mode::before {
  content: "📡 Modo sin conexión - Usando datos guardados";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: white;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Ajuste de padding cuando hay notificación offline */
body.offline-mode .navbar {
  margin-top: 2.5rem;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

body.light-mode * {
  scrollbar-color: rgba(71, 85, 105, 0.3) transparent;
}

/* Header */
.header {
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  padding: 1.01rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.header-container {
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 1rem;
}

.header-spacer {
  flex: 1;
}

.header-tagline {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (min-width: 769px) {
  .header-tagline {
    display: block;
  }
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  flex-shrink: 0;
  transition: color 0.2s;
}

.sidebar-toggle:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logout-btn {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

@media (max-width: 768px) {
  .logo-section {
    flex: 1;
  }
}

.logo {
  width: 40px;
  height: 40px;
  background: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: bold;
}

.logo-text p {
  display: none;
}

.theme-toggle {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  background-color: rgba(15, 93, 154, 0.1);
  color: var(--primary-color);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 80px;
  width: 245px;
  height: calc(100vh - 80px);
  background-color: var(--bg-darker);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 101;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.sidebar-header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: var(--primary-color);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 0;
}

.sidebar-section {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.75rem 0.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav-item {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.sidebar-label {
  display: inline;
  transition: opacity 0.2s;
}

.sidebar-nav-item:hover {
  background-color: rgba(15, 93, 154, 0.15);
  color: var(--primary-color);
  padding-left: 1.25rem;
}

body.light-mode .sidebar-nav-item:hover {
  background-color: rgba(13, 71, 161, 0.12);
}

.sidebar-nav-item.active {
  background-color: rgba(15, 93, 154, 0.2);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: calc(1rem - 3px);
}

body.light-mode .sidebar-nav-item.active {
  background-color: rgba(13, 71, 161, 0.15);
}

.sidebar-nav-item i {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.category-counter {
  display: inline;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.2s;
  flex-shrink: 0;
}

body.light-mode .category-counter {
  color: #6b21a8;
}

.sidebar.collapsed .category-counter {
  display: none;
}

.sidebar-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.sidebar-stat {
  background-color: rgba(15, 93, 154, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid rgba(15, 93, 154, 0.2);
}

body.light-mode .sidebar-stat {
  background-color: rgba(13, 71, 161, 0.08);
  border: 1px solid rgba(13, 71, 161, 0.15);
}

.sidebar-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.sidebar-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.sidebar-footer-text {
  width: 100%;
  display: block;
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.sidebar-collapse-btn:hover {
  color: var(--primary-color);
  background-color: rgba(15, 93, 154, 0.1);
}

body.light-mode .sidebar-collapse-btn:hover {
  background-color: rgba(13, 71, 161, 0.12);
}

.sidebar-actions-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.75rem 0;
}

.sidebar-section-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.75rem 1rem;
}

.sidebar-section:has(.theme-toggle-sidebar) {
  display: flex;
  flex-direction: column;
}

.theme-toggle-sidebar {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.theme-toggle-sidebar span {
  display: inline !important;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.theme-toggle-sidebar:hover {
  background-color: rgba(15, 93, 154, 0.1);
  color: var(--primary-color);
}

body.light-mode .theme-toggle-sidebar:hover {
  background-color: rgba(13, 71, 161, 0.12);
}

/* Sidebar Collapsed Mode */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .sidebar-header {
  display: flex;
  padding: 1rem 0.5rem;
  justify-content: center;
  flex-direction: column;
}

.sidebar.collapsed .sidebar-header h3,
.sidebar.collapsed .sidebar-close {
  display: none;
}

.sidebar.collapsed .sidebar-header-buttons {
  display: flex;
  justify-content: center;
}

.sidebar.collapsed .sidebar-section-title {
  display: none;
}

.sidebar.collapsed .sidebar-nav-item span {
  display: none;
}

.sidebar.collapsed .sidebar-stats {
  display: none;
}

.sidebar.collapsed .sidebar-footer-text {
  display: none;
}

.sidebar.collapsed .sidebar-nav-item {
  padding: 0.75rem;
  justify-content: center;
  border-radius: 8px;
  width: auto;
  height: 48px;
}

.sidebar.collapsed .sidebar-nav-item:hover {
  padding-left: 0.75rem;
}

.sidebar.collapsed .sidebar-nav-item.active {
  border-left: none;
  padding-left: 0.75rem;
}

.sidebar.collapsed .sidebar-nav-item i {
  width: auto;
  margin: 0;
}

.sidebar.collapsed .sidebar-section {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar.collapsed .sidebar-footer {
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.5rem;
}

.sidebar.collapsed .sidebar-collapse-btn {
  width: 40px;
  height: 40px;
}

.sidebar.collapsed .theme-toggle-sidebar {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
}

.sidebar.collapsed .theme-toggle-sidebar span {
  display: none !important;
}

.sidebar.collapsed .sidebar-actions-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem auto;
}

.sidebar.collapsed .sidebar-section-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem auto;
}

.sidebar.collapsed .sidebar-content {
  scrollbar-width: none;
}

.sidebar.collapsed .sidebar-content::-webkit-scrollbar {
  display: none;
}

/* Adjust main container when sidebar is collapsed */
.main-container.sidebar-collapsed {
  margin-left: 80px;
  width: calc(100% - 80px);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  margin-left: 240px;
  padding: 2rem;
  padding-top: calc(2rem + 80px);
  width: calc(100% - 240px);
  box-sizing: border-box;
  overflow-x: hidden;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

@media (max-width: 768px) {
  .main-container {
    margin-left: 0;
    width: 100%;
    margin-top: 20px;
  }

  .sidebar {
    transform: translateX(-100%);
    top: 0;
    height: 100vh;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  .sidebar-header-buttons {
    display: flex;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0.75rem;
  }
}

.page-title {
  margin-bottom: 2rem;
}

.page-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Search Section */
.search-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.search-bar {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  position: relative;
  box-sizing: border-box;
}

.search-bar svg,
.search-bar i {
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.btn-clear-search {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.btn-clear-search:hover {
  color: var(--text-primary);
}

.search-bar-hint {
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.search-bar-hint kbd {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.search-bar:has(input:not(:placeholder-shown)) .search-bar-hint {
  display: none !important;
}

.search-bar:has(input:placeholder-shown) .search-bar-hint {
  display: flex !important;
  align-items: center;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.875rem 2.75rem 0.875rem 1.125rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237154ea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.3em 1.3em;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.2px;
}

.filter-select:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 93, 154, 0.15);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(15, 93, 154, 0.15),
    0 4px 12px rgba(15, 93, 154, 0.2);
  transform: translateY(-2px);
}

.filter-select option {
  background-color: var(--card-bg);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.25rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.filter-select option:hover {
  background: linear-gradient(var(--primary-color), var(--primary-color));
  background-color: var(--primary-color) !important;
  color: white !important;
}

.filter-select option:checked {
  background: linear-gradient(var(--primary-color), var(--primary-color));
  background-color: var(--primary-color) !important;
  color: white !important;
  font-weight: 600;
}

/* Buttons */
.btn {
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 93, 154, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(15, 93, 154, 0.35);
}

.btn-primary:active {
  box-shadow: 0 6px 12px rgba(15, 93, 154, 0.25);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 93, 154, 0.15);
}

.btn-danger {
  background-color: var(--error-color);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  box-shadow: 0 8px 20px rgba(15, 93, 154, 0.15);
  border-color: var(--primary-color);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.stat-card-active .stat-value {
  color: var(--success-color);
}

.stat-card-inactive .stat-value {
  color: var(--error-color);
}

/* View Controls Bar */
.view-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  flex-wrap: wrap;
}

.view-controls-left,
.view-controls-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-control {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-control:hover {
  border-color: var(--primary-color);
  background-color: rgba(15, 118, 110, 0.1);
  color: var(--primary-color);
}

.btn-control.active {
  border-color: var(--success-color);
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

/* Accounts Container */
.accounts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  min-height: 300px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.accounts-wrapper {
  width: 100%;
}

.accounts-container.table-view {
  display: block;
  overflow-x: auto;
}

.accounts-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.accounts-table thead {
  background-color: rgba(15, 118, 110, 0.1);
  border-bottom: 2px solid var(--border-color);
}

.accounts-table th {
  padding: 1rem;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid var(--border-color);
}

.accounts-table th:last-child {
  border-right: none;
}

.accounts-table td {
  padding: 1rem;
  color: var(--text-primary);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.accounts-table td:last-child {
  border-right: none;
}

.accounts-table tbody tr:hover {
  background-color: rgba(15, 118, 110, 0.05);
  cursor: pointer;
}

.accounts-table .table-email {
  font-weight: 500;
  color: var(--primary-color);
}

.accounts-table .table-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(15, 118, 110, 0.15);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.accounts-table .table-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.accounts-table .table-status.activa {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.accounts-table .table-status.inactiva {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
}

.accounts-table .table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* View Controls Bar Responsive */
@media (max-width: 768px) {
  .view-controls-bar {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .view-controls-left,
  .view-controls-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .btn-control {
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-control span {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    text-align: center;
  }

  .btn-control i {
    font-size: 1rem;
  }

  .accounts-table {
    font-size: 0.9rem;
  }

  .accounts-table th,
  .accounts-table td {
    padding: 0.75rem 0.5rem;
  }

  /* Adjust column widths on mobile */
  .accounts-table th:nth-child(1),
  .accounts-table td:nth-child(1) {
    min-width: 120px;
  }

  .accounts-table th:nth-child(2),
  .accounts-table td:nth-child(2) {
    min-width: 90px;
  }

  /* Make Estado column wider on mobile */
  .accounts-table th:nth-child(3),
  .accounts-table td:nth-child(3) {
    min-width: 130px;
  }

  .accounts-table th:nth-child(4),
  .accounts-table td:nth-child(4) {
    min-width: 110px;
  }
}

.empty-state {
  grid-column: 1 / -1;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.empty-state-icon {
  font-size: 2.5rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.empty-state p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

/* Account Card */
.account-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.account-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(15, 93, 154, 0.2);
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.account-email-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.account-email-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.account-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
}

.btn-action {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.btn-action:active {
  transform: scale(0.95);
}

.btn-action.btn-delete:hover {
  color: var(--error-color);
  background-color: rgba(239, 68, 68, 0.1);
}

.btn-action.btn-favorite:hover {
  color: #fbbf24;
  transform: scale(1.15);
}

.btn-action.btn-favorite i.bi-star-fill {
  color: #fbbf24;
}

.btn-action.btn-table-favorite:hover {
  color: #fbbf24;
  transform: scale(1.15);
}

.btn-action.btn-table-favorite i.bi-star-fill {
  color: #fbbf24;
}

.btn-action.btn-gmail:hover {
  color: #ea4335;
}

.btn-action.btn-archive:hover {
  color: #f97316;
}

.account-actions-footer {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  align-items: center;
}

.account-actions-footer .account-category {
  margin-right: auto;
}

.account-actions-footer .btn-action {
  padding: 0.4rem 0.5rem !important;
}

.account-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(15, 93, 154, 0.2);
  color: var(--primary-color);
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
}

.account-category i {
  font-size: 0.85rem;
}

.btn-status {
  padding: 0.2rem !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem !important;
  border: none !important;
  flex-shrink: 0;
  pointer-events: none;
  cursor: default;
}

.btn-status i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.account-status.activa {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.account-status.inactiva {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
}

.account-status i {
  font-size: 0.85rem;
}

.account-inactive-until {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--warning-color);
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.account-inactive-until i {
  font-size: 0.9rem;
}

.account-notes-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.75rem;
  background-color: rgba(123, 58, 237, 0.08);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  margin-top: 0.75rem;
}

.account-notes-preview i {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--primary-color);
}

.account-notes-preview .notes-text {
  line-height: 1.4;
  word-break: break-word;
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.account-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-dark);
  padding: 0.75rem;
  border-radius: 8px;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  min-width: 70px;
}

.detail-value {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: "Courier New", monospace;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.btn-copy:hover {
  color: var(--primary-color);
}

/* Pagination */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.pagination-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-weight: 500;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-dots {
  color: var(--text-secondary);
  padding: 0.5rem 0.25rem;
  font-size: 0.9rem;
}

/* Pagination Animations */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accounts-container.pagination-fade-out {
  animation: fadeOut 0.15s ease-out forwards;
}

.accounts-container.pagination-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.pagination-shortcut-hint {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.pagination-shortcut-hint kbd {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  margin: 0 0.2rem;
}

.pagination-shortcut-hint i {
  font-size: 0.7rem;
  margin: 0 0.1rem;
}

/* Hide hint on mobile */
@media (max-width: 767px) {
  .pagination-shortcut-hint {
    display: none;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

.modal-content {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.modal-title-section {
  flex: 1;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.35rem 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: rgba(15, 93, 154, 0.1);
  transform: rotate(90deg);
}

.modal-close:active {
  transform: rotate(90deg) scale(0.9);
}

/* Modal Scrollbar Styles */
.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background-color: var(--card-bg);
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  transition: background-color 0.2s;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.7);
}

/* Modal Scrollbar in Light Mode */
body.light-mode .modal-content::-webkit-scrollbar-track {
  background-color: #ffffff;
}

body.light-mode .modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(71, 85, 105, 0.5);
}

body.light-mode .modal-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(71, 85, 105, 0.7);
}

/* Firefox Scrollbar for Modal */
.modal-content {
  scrollbar-color: rgba(148, 163, 184, 0.5) var(--card-bg);
}

body.light-mode .modal-content {
  scrollbar-color: rgba(71, 85, 105, 0.5) #ffffff;
}

/* Form */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background-color: var(--bg-dark);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Email Input Wrapper */
.email-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.email-input-wrapper input {
  flex: 1;
  padding-right: 120px;
}

.email-suffix {
  position: absolute;
  right: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  pointer-events: none;
  transition: opacity 0.2s;
}

.email-suffix.hidden {
  display: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(15, 93, 154, 0.15),
    0 4px 12px rgba(15, 93, 154, 0.2);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  background-color: var(--bg-dark);
  cursor: pointer;
}

.form-group select option {
  background-color: var(--secondary-color);
  color: var(--text-primary);
}

/* Date Input Improvements */
.form-group input[type="date"] {
  position: relative;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  margin-right: 0.5rem;
  opacity: 0.6;
  filter: invert(0.8) brightness(1.2);
  transition: opacity 0.2s;
}

.form-group input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.form-group input[type="date"]::-webkit-outer-spin-button,
.form-group input[type="date"]::-webkit-inner-spin-button {
  display: none;
  -webkit-appearance: none;
  margin: 0;
}

.form-group-checkbox {
  display: flex;
  align-items: center;
}

.form-group-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.form-group-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
}

/* View Account Modal */
#viewAccountContent {
  margin-bottom: 1rem;
}

.account-detail-item {
  margin-bottom: 1.5rem;
}

.account-detail-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.account-detail-label-required::after {
  content: " *";
  color: var(--error-color);
}

.account-detail-value {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  word-break: break-all;
  background-color: var(--bg-dark);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: "Courier New", monospace;
}

.account-detail-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.account-detail-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 93, 154, 0.1);
}

/* Select styling for category */
.account-detail-item select {
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Password toggle button in account details */
.account-detail-password-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-password-toggle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.btn-password-toggle:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.btn-password-toggle:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }

  .page-title h2 {
    font-size: 1.5rem;
  }

  .page-title p {
    font-size: 0.9rem;
  }

  .search-section {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-bar {
    min-width: auto;
    width: 100%;
  }

  .filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-select {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .accounts-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .account-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .account-header {
    gap: 0.5rem;
  }

  .account-email {
    font-size: 0.9rem;
  }

  .account-tags {
    gap: 0.5rem;
  }

  .account-category,
  .account-status {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .account-detail {
    flex-wrap: wrap;
    padding: 0.6rem;
    gap: 0.5rem;
  }

  .detail-label {
    min-width: 60px;
    font-size: 0.7rem;
  }

  .detail-value {
    font-size: 0.85rem;
    min-width: auto;
    flex: 1;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem;
    margin: auto;
  }

  .modal-header {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .logo {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .logo-text h1 {
    font-size: 1.1rem;
    margin-bottom: 0.08rem;
  }

  .logo-text p {
    font-size: 0.65rem;
  }

  .view-controls-bar {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .view-controls-left,
  .view-controls-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .btn-control {
    padding: 0.65rem 0.4rem;
    font-size: 0.75rem;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .btn-control span {
    display: block;
    font-size: 0.65rem;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
  }

  .btn-control i {
    font-size: 1rem;
  }

  .page-title {
    margin-bottom: 1rem;
  }

  .page-title h2 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
  }

  .page-title p {
    font-size: 0.85rem;
  }

  .search-bar {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
    border-radius: 8px;
  }

  .search-bar i {
    font-size: 1rem;
  }

  .search-bar input {
    font-size: 0.9rem;
  }

  .btn-clear-search {
    font-size: 1rem;
  }

  .filters {
    gap: 0.5rem;
    width: 100%;
  }

  .filter-select {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    padding: 0.55rem 0.7rem;
    padding-right: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.8rem;
    border-radius: 8px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .account-card {
    padding: 0.6rem;
    gap: 0.6rem;
    border-radius: 8px;
  }

  .account-header {
    gap: 0.4rem;
  }

  .account-email-section {
    gap: 0.5rem;
  }

  .account-email-icon {
    font-size: 1.25rem;
  }

  .account-email {
    font-size: 0.85rem;
  }

  .btn-action {
    font-size: 1rem;
    padding: 0.2rem;
  }

  .account-tags {
    gap: 0.4rem;
  }

  .account-category,
  .account-status {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    gap: 0.3rem;
  }

  .account-category i,
  .account-status i {
    font-size: 0.7rem;
  }

  .account-details {
    gap: 0.6rem;
    padding-top: 0.8rem;
  }

  .account-detail {
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
  }

  .detail-label {
    min-width: 55px;
    font-size: 0.65rem;
  }

  .detail-value {
    font-size: 0.8rem;
  }

  .btn-copy {
    font-size: 0.9rem;
    padding: 0.15rem;
  }

  .modal-content {
    width: 98%;
    max-height: 85vh;
    padding: 1rem;
    border-radius: 12px;
  }

  .modal-close {
    width: 28px;
    height: 28px;
    font-size: 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .modal-description {
    font-size: 0.8rem;
  }

  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
  }

  .form-group textarea {
    min-height: 70px;
  }

  .form-actions {
    gap: 0.6rem;
    padding-top: 0.8rem;
    margin-top: 1rem;
  }

  .btn {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .btn span {
    margin-right: 0.3rem;
  }

  /* Footer adjustments for mobile */
  .footer {
    padding: 2rem 0 1rem;
    margin-top: 2rem;
  }

  .footer-container {
    padding: 0 0.75rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .footer-section p,
  .footer-section li {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 8px;
  border: 2px solid var(--bg-dark);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  margin-left: 280px;
  padding: 3rem 0 1rem;
  color: var(--text-secondary);
  overflow-x: hidden;
  width: calc(100% - 280px);
  box-sizing: border-box;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.footer.sidebar-collapsed {
  margin-left: 80px;
  width: calc(100% - 80px);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-section ul li::before {
  content: "";
  color: var(--primary-color);
  margin-right: 0;
}

.footer-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-icons a:hover {
  color: var(--primary-color);
  background-color: var(--primary-color);
  background-color: rgba(15, 93, 154, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-icons a i {
  font-size: 1.2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-install-app {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-install-app:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 93, 154, 0.3);
}

.btn-install-app:active {
  transform: translateY(0);
}

.btn-install-app i {
  font-size: 1.1rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
  }

  .header-container {
    padding: 0 1rem;
  }

  body {
    padding-top: 70px;
  }

  .main-container {
    padding-top: 0;
  }

  .footer {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 1rem;
  }

  .logo-text p {
    display: none;
  }

  .header-container {
    padding: 0 0.75rem;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom-left {
    width: 100%;
  }

  .btn-install-app {
    width: 100%;
    justify-content: center;
  }
  .empty-state {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 0.75rem;
  }

  .empty-state {
    padding: 1.5rem 0.75rem;
  }
}

/* Password and Archive Styles */
.password-field {
  font-family: "Courier New", monospace;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.account-archived {
  background-color: var(--warning-color);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.light-mode .account-archived {
  background-color: var(--warning-color);
  color: white;
}

body.light-mode .account-notes-preview {
  background-color: rgba(13, 71, 161, 0.08);
  color: var(--text-primary);
}

/* Active state for password and archive buttons */
.btn-control.active {
  border-color: var(--primary-color);
  background-color: rgba(15, 93, 154, 0.2);
  color: var(--primary-color);
}

/* Button states for archive */
.btn-archive {
  transition: all 0.2s ease;
}

.account-card[data-archived="true"] {
  opacity: 0.7;
}

.account-card[data-archived="true"] .account-details {
  opacity: 0.8;
}

/* Help Button */
.help-btn {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.15),
    rgba(15, 93, 154, 0.05)
  );
  border: 2px solid rgba(15, 93, 154, 0.3);
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.6rem 0.7rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.help-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.25),
    rgba(15, 93, 154, 0.15)
  );
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 93, 154, 0.3);
}

.help-btn:active {
  transform: translateY(0);
}

.logout-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 8px;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.logout-btn:active {
  transform: translateY(0);
}

.logout-text {
  font-weight: 500;
  white-space: nowrap;
}

/* Help Modal Styles */
.modal-help {
  max-width: 1100px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-darker);
  border: 2px solid rgba(15, 93, 154, 0.3);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(15, 93, 154, 0.15);
}

.modal-help .modal-header {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.25),
    rgba(15, 93, 154, 0.1)
  );
  border-bottom: 1px solid rgba(15, 93, 154, 0.25);
  padding: 2rem;
  position: relative;
}

.modal-help .modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.modal-help .modal-header h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.help-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.5rem;
  background: var(--bg-darker);
}

/* Help Tabs */
.help-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(15, 93, 154, 0.15);
}

.help-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  position: relative;
}

.help-tab-btn:hover {
  color: var(--primary-color);
  background: rgba(15, 93, 154, 0.08);
  border-bottom-color: var(--primary-color);
}

.help-tab-btn.active {
  color: var(--primary-color);
  background: rgba(15, 93, 154, 0.12);
  border-bottom-color: var(--primary-color);
  font-weight: 700;
}

/* Help Sections */
.help-section {
  display: none;
  animation: fadeInSlide 0.5s ease;
}

.help-section.active {
  display: block;
}

.help-section h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  border-bottom: 2px solid rgba(15, 93, 154, 0.15);
  padding-bottom: 1.2rem;
}

.help-section h4 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.help-section h4 i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.help-section p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.9;
  font-size: 0.95rem;
}

.help-section ol,
.help-section ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.help-section li {
  margin-bottom: 0.7rem;
  line-height: 1.8;
  font-size: 0.95rem;
  position: relative;
  padding-left: 0.5rem;
}

.help-box {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.08),
    rgba(15, 93, 154, 0.02)
  );
  border-left: 4px solid var(--primary-color);
  padding: 1.6rem;
  margin-bottom: 1.8rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 93, 154, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.help-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
}

.help-box:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.15),
    rgba(15, 93, 154, 0.08)
  );
  border-left-color: #a78bfa;
  border-color: rgba(15, 93, 154, 0.25);
  box-shadow: 0 8px 24px rgba(15, 93, 154, 0.12);
  transform: translateX(4px);
}

.help-box h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.help-box ul {
  margin-left: 1.5rem;
}

.help-box li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Help Features */
.help-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding: 1.6rem;
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.08),
    rgba(15, 93, 154, 0.02)
  );
  border-radius: 12px;
  border: 1px solid rgba(15, 93, 154, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start;
}

.help-feature:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.15),
    rgba(15, 93, 154, 0.08)
  );
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(15, 93, 154, 0.12);
  transform: translateX(4px);
}

.help-feature h4 {
  color: var(--text-primary);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.help-feature h4 i {
  color: var(--primary-color);
  font-size: 1.4rem;
  min-width: 1.4rem;
}

.help-feature p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Shortcuts Table */
.shortcuts-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.shortcut-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.08),
    rgba(15, 93, 154, 0.02)
  );
  border: 1px solid rgba(15, 93, 154, 0.15);
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcut-item:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.15),
    rgba(15, 93, 154, 0.08)
  );
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(15, 93, 154, 0.12);
  transform: translateX(4px);
}

.shortcut-keys {
  font-family: "Courier New", monospace;
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.2),
    rgba(15, 93, 154, 0.1)
  );
  color: #a78bfa;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  border: 2px solid rgba(15, 93, 154, 0.25);
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.shortcut-keys:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 93, 154, 0.3),
    rgba(15, 93, 154, 0.15)
  );
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(15, 93, 154, 0.2);
}

.shortcut-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-weight: 500;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling for help content */
.help-content::-webkit-scrollbar {
  width: 10px;
}

.help-content::-webkit-scrollbar-track {
  background: transparent;
}

.help-content::-webkit-scrollbar-thumb {
  background: rgba(15, 93, 154, 0.25);
  border-radius: 5px;
}

.help-content::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 93, 154, 0.45);
}

/* Responsive Help Modal */
@media (max-width: 768px) {
  /* Hide help button in header on mobile */
  .help-btn {
    display: none;
  }
  .modal-help {
    max-width: 95vw;
    max-height: 95vh;
  }

  .modal-help .modal-header {
    padding: 1.5rem;
  }

  .modal-help .modal-header h2 {
    font-size: 1.8rem;
  }

  .help-tabs {
    gap: 0;
    padding-bottom: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(15, 93, 154, 0.15);
  }

  .help-tab-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    border-radius: 0;
  }

  .help-feature {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .shortcut-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .help-content {
    padding: 1.8rem;
  }

  .help-section h3 {
    font-size: 1.6rem;
    padding-bottom: 1rem;
  }

  .help-box {
    padding: 1.3rem;
    margin-bottom: 1.5rem;
  }
}

/* Login Modal Styles - Bootstrap Override */
/* Login Modal Styles - Completely Redesigned */
.login-modal-dialog {
  max-width: 460px !important;
}

.login-modal-content {
  background: #1a1f2e;
  border: 1px solid rgba(15, 93, 154, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(15, 93, 154, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.login-container {
  padding: 50px 40px 45px 40px;
  background: linear-gradient(180deg, #1a1f2e 0%, #1f2534 100%);
  min-height: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-logo-wrapper {
  margin-bottom: 20px;
}

.login-logo {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(15, 93, 154, 0.25));
  animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.login-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-form-group {
  margin-bottom: 25px;
}

.login-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.login-input-group {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(15, 93, 154, 0.2);
  background: rgba(30, 41, 59, 0.6);
  transition: all 0.3s ease;
}

.login-input-group:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(15, 93, 154, 0.1), 0 0 20px rgba(15, 93, 154, 0.15);
  background: rgba(30, 41, 59, 0.8);
}

.login-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  letter-spacing: 0.3px;
}

.login-input::placeholder {
  color: #64748b;
}

.login-input-toggle {
  background: transparent;
  border: none;
  color: #7c3aed;
  padding: 0 16px;
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.login-input-toggle:hover {
  color: #a78bfa;
}

.login-input-toggle:active {
  transform: scale(0.95);
}

.login-helper-text {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

.login-btn-submit {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 93, 154, 0.3);
  margin-bottom: 15px;
}

.login-btn-submit:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 93, 154, 0.4);
}

.login-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 93, 154, 0.3);
}

.login-alert {
  border-radius: 10px;
  border: none;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 4px solid;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-alert-error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1) 0%,
    rgba(239, 68, 68, 0.05) 100%
  );
  color: #fca5a5;
  border-left-color: #ef4444;
}

/* Bootstrap Modal Backdrop */
.modal-backdrop.show {
  opacity: 0.6;
  backdrop-filter: blur(4px);
}

/* Ensure z-index for Bootstrap modals */
.modal.show {
  z-index: 1060 !important;
}

.modal-backdrop.show {
  z-index: 1050 !important;
}

/* Change Password Modal Styles - Complete Redesign */
.change-password-modal-dialog {
  max-width: 480px !important;
}

.change-password-modal-content {
  background: #1a1f2e;
  border: 1px solid rgba(15, 93, 154, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(15, 93, 154, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.change-password-header {
  background: linear-gradient(180deg, #1f2534 0%, #1a1f2e 100%);
  border-bottom: 1px solid rgba(15, 93, 154, 0.2);
  padding: 28px 35px;
  position: relative;
}

.change-password-header .modal-title {
  font-weight: 800;
  color: #e2e8f0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.change-password-header .btn-close {
  color: #94a3b8;
  opacity: 0.6;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  position: absolute;
  right: 20px;
  top: 25px;
}

.change-password-header .btn-close:hover {
  opacity: 1;
  color: #a78bfa;
}

.change-password-body {
  padding: 35px;
  background: linear-gradient(180deg, #1a1f2e 0%, #1f2534 100%);
}

.change-password-form-group {
  margin-bottom: 28px;
}

.change-password-label {
  display: block;
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.change-password-input-group {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(15, 93, 154, 0.2);
  background: rgba(30, 41, 59, 0.6);
  transition: all 0.3s ease;
}

.change-password-input-group:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(15, 93, 154, 0.12),
    0 0 20px rgba(15, 93, 154, 0.15);
  background: rgba(30, 41, 59, 0.8);
}

.change-password-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
  letter-spacing: 0.3px;
  font-weight: 500;
  width: 100%;
}

.change-password-input::placeholder {
  color: #64748b;
}

.change-password-input-toggle {
  background: transparent;
  border: none;
  color: #7c3aed;
  padding: 0 16px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.change-password-input-toggle:hover {
  color: #a78bfa;
}

.change-password-input-toggle:active {
  transform: scale(0.95);
}

.change-password-alert {
  border-radius: 10px;
  border: none;
  border-left: 4px solid;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  animation: slideDown 0.3s ease;
  margin-bottom: 20px;
}

.change-password-alert-error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1) 0%,
    rgba(239, 68, 68, 0.05) 100%
  );
  color: #fca5a5;
  border-left-color: #ef4444;
}

.change-password-alert-success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  color: #86efac;
  border-left-color: #10b981;
}

.change-password-footer {
  background: linear-gradient(180deg, #1a1f2e 0%, #1f2534 100%);
  border-top: 1px solid rgba(15, 93, 154, 0.2);
  padding: 25px 35px;
  gap: 12px;
  display: flex;
  flex-direction: row-reverse;
}

.change-password-btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 15px rgba(15, 93, 154, 0.3);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 1;
}

.change-password-btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 93, 154, 0.4);
}

.change-password-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 93, 154, 0.3);
}

.change-password-btn-secondary {
  background-color: transparent;
  border: 2px solid rgba(15, 93, 154, 0.2);
  color: #94a3b8;
  transition: all 0.3s ease;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 1;
}

.change-password-btn-secondary:hover {
  background-color: rgba(15, 93, 154, 0.1);
  border-color: #7c3aed;
  color: #e2e8f0;
}

.change-password-btn-secondary:active {
  transform: scale(0.98);
}

/* Light Mode - Change Password Modal */
body.light-mode .change-password-modal-content {
  background: #ffffff;
  border-color: rgba(13, 71, 161, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(13, 71, 161, 0.08);
}

body.light-mode .change-password-header {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border-bottom-color: rgba(13, 71, 161, 0.2);
}

body.light-mode .change-password-header .modal-title {
  color: #0f172a;
}

body.light-mode .change-password-header .btn-close {
  color: #64748b;
  opacity: 0.6;
}

body.light-mode .change-password-header .btn-close:hover {
  opacity: 1;
  color: #7e22ce;
}

body.light-mode .change-password-body {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

body.light-mode .change-password-label {
  color: #0f172a;
}

body.light-mode .change-password-input-group {
  border-color: rgba(13, 71, 161, 0.25);
  background: rgba(15, 23, 42, 0.04);
}

body.light-mode .change-password-input-group:focus-within {
  border-color: #5b21b6;
  box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1), 0 0 20px rgba(13, 71, 161, 0.12);
  background: rgba(15, 23, 42, 0.06);
}

body.light-mode .change-password-input {
  color: #0f172a;
}

body.light-mode .change-password-input::placeholder {
  color: #94a3b8;
}

body.light-mode .change-password-input-toggle {
  color: #5b21b6;
}

body.light-mode .change-password-input-toggle:hover {
  color: #7e22ce;
}

body.light-mode .change-password-alert-error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1) 0%,
    rgba(239, 68, 68, 0.05) 100%
  );
  color: #dc2626;
  border-left-color: #ef4444;
}

body.light-mode .change-password-alert-success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  color: #059669;
  border-left-color: #10b981;
}

body.light-mode .change-password-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-top-color: rgba(13, 71, 161, 0.2);
}

body.light-mode .change-password-btn-primary {
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.25);
}

body.light-mode .change-password-btn-primary:hover {
  background: linear-gradient(135deg, #4c1d95 0%, #3f0f5c 100%);
  box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
}

body.light-mode .change-password-btn-secondary {
  border-color: rgba(13, 71, 161, 0.25);
  color: #64748b;
}

body.light-mode .change-password-btn-secondary:hover {
  background-color: rgba(13, 71, 161, 0.08);
  border-color: #5b21b6;
  color: #0f172a;
}

/* Light Mode */
/* Bootstrap Tooltips Customization */
.tooltip-inner {
  background-color: var(--primary-color);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(15, 93, 154, 0.3);
  font-weight: 500;
  max-width: 200px;
}

.tooltip .tooltip-arrow::before {
  border-top-color: var(--primary-color);
}

.tooltip[data-popper-placement^="right"] > .tooltip-arrow::before {
  border-right-color: var(--primary-color);
}

.tooltip[data-popper-placement^="left"] > .tooltip-arrow::before {
  border-left-color: var(--primary-color);
}

.tooltip[data-popper-placement^="bottom"] > .tooltip-arrow::before {
  border-bottom-color: var(--primary-color);
}

/* Light mode tooltips */
body.light-mode .tooltip-inner {
  background-color: #5b21b6;
  color: #ffffff;
}

body.light-mode
  .tooltip[data-popper-placement^="right"]
  > .tooltip-arrow::before {
  border-right-color: #5b21b6;
}

body.light-mode
  .tooltip[data-popper-placement^="left"]
  > .tooltip-arrow::before {
  border-left-color: #5b21b6;
}

body.light-mode
  .tooltip[data-popper-placement^="bottom"]
  > .tooltip-arrow::before {
  border-bottom-color: #5b21b6;
}

body.light-mode
  .tooltip[data-popper-placement^="top"]
  > .tooltip-arrow::before {
  border-top-color: #5b21b6;
}

body.light-mode .login-btn-submit:hover {
  background: linear-gradient(135deg, #4c1d95 0%, #3f0f5c 100%);
  box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
}

/* Skeleton Loading Styles */
.skeleton-loader {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skeleton-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(15, 93, 154, 0.1);
  flex-shrink: 0;
}

body.light-mode .skeleton-avatar {
  background-color: rgba(13, 71, 161, 0.1);
}

.skeleton-info {
  flex: 1;
}

.skeleton-title {
  height: 18px;
  background-color: rgba(15, 93, 154, 0.1);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

body.light-mode .skeleton-title {
  background-color: rgba(13, 71, 161, 0.1);
}

.skeleton-text {
  height: 14px;
  background-color: rgba(15, 93, 154, 0.08);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

body.light-mode .skeleton-text {
  background-color: rgba(13, 71, 161, 0.08);
}

.skeleton-body {
  margin-bottom: 1rem;
}

.skeleton-footer {
  display: flex;
  gap: 0.75rem;
}

.skeleton-button {
  height: 36px;
  background-color: rgba(15, 93, 154, 0.1);
  border-radius: 6px;
  flex: 1;
}

body.light-mode .skeleton-button {
  background-color: rgba(13, 71, 161, 0.1);
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Delete Confirmation Modal */
.delete-confirm-modal {
  max-width: 450px;
}

.delete-confirm-content {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.delete-confirm-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-bottom: none;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.delete-confirm-header .modal-title {
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
  flex: 1;
}

.delete-confirm-header .modal-title i {
  color: white;
}

.delete-confirm-header .btn-close {
  color: white;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.delete-confirm-header .btn-close:hover {
  opacity: 1;
}

.delete-confirm-body {
  padding: 2rem 1.5rem;
  background-color: var(--bg-dark);
}

.delete-confirm-text {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
}

.delete-confirm-account-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delete-confirm-account-name strong {
  color: var(--text-primary);
  word-break: break-word;
  display: block;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.delete-confirm-warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15) 0%,
    rgba(239, 68, 68, 0.05) 100%
  );
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 3px solid #ef4444;
  padding: 1.2rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.delete-confirm-warning i {
  color: #ef4444;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.delete-confirm-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  background-color: var(--bg-dark);
}

.delete-confirm-footer .btn {
  flex: 1;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  text-transform: none;
}

.delete-confirm-footer .btn-secondary {
  background-color: var(--border-color);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.delete-confirm-footer .btn-secondary:hover {
  background-color: rgba(148, 163, 184, 0.2);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delete-confirm-footer .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

.delete-confirm-footer .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

body.light-mode .delete-confirm-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

body.light-mode .delete-confirm-body {
  background-color: #f8fafc;
}

body.light-mode .delete-confirm-footer {
  background-color: #f8fafc;
}

body.light-mode .delete-confirm-footer .btn-secondary {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

body.light-mode .delete-confirm-footer .btn-secondary:hover {
  background-color: #cbd5e1;
  border-color: #94a3b8;
}

/* ===== SUCCESS SCREEN ===== */

.success-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #000 0%, #1a1f2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeInSuccess 0.3s ease-out;
}

.success-screen.d-none {
  display: none !important;
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-screen-content {
  text-align: center;
  color: #fff;
  animation: scaleInSuccess 0.5s ease-out 0.2s both;
}

@keyframes scaleInSuccess {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-screen-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #10b981;
  animation: bounceIn 0.6s ease-out 0.3s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.success-screen-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.success-screen-message {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.success-screen-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.success-screen-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-loader 1.4s infinite;
}

.success-screen-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.success-screen-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse-loader {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== LOGIN SCREEN FULLSCREEN ===== */

.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  z-index: 9999;
  overflow: hidden;
}

/* Forzar tema oscuro en pantalla de login */
body.light-mode .login-screen,
body.light-mode .login-screen * {
  color-scheme: dark;
}

.login-screen.d-none {
  display: none !important;
}

.login-screen-container {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

/* Columna izquierda (solo PC) */
.login-screen-left {
  flex: 1;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.login-screen-left::before {
  display: none;
}

.login-screen-left-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.login-screen-tagline {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-screen-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
}

.login-screen-left-content .login-screen-logo-wrapper {
  margin: 0;
}

.login-screen-left-content .login-screen-logo {
  height: 100px;
}

.login-screen-features {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .login-screen-features {
    display: none;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

.feature-item:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-item i {
  font-size: 1.3rem;
  color: #7c3aed;
}

/* Columna derecha (formulario) */
.login-screen-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--card-bg);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* Ocultar scrollbar en pantalla de login */
.login-screen-right::-webkit-scrollbar {
  display: none;
}

.login-screen-right {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.login-screen-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-screen-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-screen-logo-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.login-screen-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(15, 93, 154, 0.25));
}

.login-screen-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.login-screen-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

.login-screen-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-screen-form-group {
  margin-bottom: 25px;
}

.login-screen-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.login-screen-input-group {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(15, 93, 154, 0.2);
  background: rgba(30, 41, 59, 0.6);
  transition: all 0.3s ease;
}

.login-screen-input-group:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(15, 93, 154, 0.1);
  background: rgba(30, 41, 59, 0.8);
}

.login-screen-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  letter-spacing: 0.3px;
}

.login-screen-input::placeholder {
  color: #64748b;
}

.login-screen-input-toggle {
  background: transparent;
  border: none;
  color: var(--primary-color);
  padding: 0 16px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.login-screen-input-toggle:hover {
  color: var(--primary-color);
  opacity: 0.8;
}

.login-screen-input-toggle:active {
  transform: scale(0.95);
}

.login-screen-helper-text {
  display: none;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

.login-screen-password-strength {
  margin-top: 12px;
  margin-bottom: 8px;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(15, 93, 154, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak {
  width: 33%;
  background: #ef4444;
}

.strength-fill.fair {
  width: 66%;
  background: #f97316;
}

.strength-fill.good {
  width: 100%;
  background: #10b981;
}

.strength-text {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.login-screen-btn-submit {
  width: 100%;
  padding: 13px 24px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 93, 154, 0.2);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-screen-btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 93, 154, 0.3);
}

.login-screen-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 93, 154, 0.2);
}

.login-screen-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-screen-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.login-screen-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-screen-info i {
  color: var(--primary-color);
  font-size: 1rem;
}

.login-screen-alert {
  border-radius: 10px;
  border: none;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.login-screen-alert-error {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
}

.login-screen-alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* Responsive - Tablets y abajo */
@media (max-width: 1024px) {
  .login-screen-left {
    display: none;
  }

  .login-screen-right {
    flex: 1;
  }
}

/* Mobile - Diseño con curvatura tipo card */
@media (max-width: 768px) {
  .login-screen {
    background: var(--bg-dark);
  }

  .login-screen-container {
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Parte superior negra con logo */
  .login-screen-left {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    height: 35%;
    background: var(--bg-dark);
    border-radius: 0;
    padding: 60px 40px 40px 40px;
    position: relative;
  }

  .login-screen-left::before {
    display: none;
  }

  .login-screen-left-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .login-screen-left-content .login-screen-logo-wrapper {
    margin: 0;
  }

  .login-screen-left-content .login-screen-logo {
    height: 80px;
    filter: drop-shadow(0 8px 16px rgba(15, 93, 154, 0.25));
  }

  .login-screen-tagline {
    display: block;
    font-size: 1.8rem;
    margin-top: -25px;
  }

  .login-screen-description {
    display: none;
  }

  /* Parte inferior blanca con formulario y curvatura */
  .login-screen-right {
    flex: 1;
    width: 100%;
    background: var(--card-bg);
    padding: 0;
    margin-top: -40px;
    border-radius: 40px 40px 0 0;
    position: relative;
    z-index: 10;
    padding-top: 50px;
    padding-bottom: 40px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .login-screen-form-wrapper {
    max-width: 100%;
    padding: 0;
  }

  .login-screen-header {
    margin-bottom: 30px;
  }

  .login-screen-title {
    font-size: 1.8rem;
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-primary);
    margin-bottom: 5px;
  }

  .login-screen-subtitle {
    display: none;
  }

  .login-screen-label {
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: capitalize;
  }

  .login-screen-form-group {
    margin-bottom: 20px;
  }

  .login-screen-input-group {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 8px;
  }

  .login-screen-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 93, 154, 0.1);
  }

  .login-screen-input {
    color: var(--text-primary);
    padding: 11px 14px;
    background: var(--bg-darker);
  }

  .login-screen-input::placeholder {
    color: var(--text-secondary);
  }

  .login-screen-input-toggle {
    color: var(--primary-color);
  }

  .login-screen-helper-text {
    display: none;
  }

  .login-screen-btn-submit {
    background: var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(15, 93, 154, 0.2);
    color: #fff;
  }

  .login-screen-btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 93, 154, 0.3);
  }

  .login-screen-btn-submit:active {
    background: var(--primary-dark);
    transform: translateY(0);
  }

  .login-screen-alert {
    border-radius: 8px;
  }

  .login-screen-alert-error {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
  }
}

@media (max-width: 480px) {
  .login-screen-left {
    height: 30%;
    padding: 40px 20px 30px 20px;
  }

  .login-screen-right {
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .login-screen-title {
    font-size: 1.6rem;
  }

  .login-screen-form-wrapper {
    padding: 0;
  }
}

/* Light mode para login screen */
body.light-mode .login-screen {
  background: var(--bg-dark);
}

body.light-mode .login-screen-left {
  background: var(--bg-dark);
}

body.light-mode .login-screen-right {
  background: var(--card-bg);
}

body.light-mode .login-screen-input-group {
  border-color: var(--border-color);
  background: var(--bg-darker);
}

body.light-mode .login-screen-input-group:focus-within {
  border-color: var(--primary-color);
  background: var(--bg-darker);
}

body.light-mode .login-screen-input {
  color: var(--text-primary);
  background: var(--bg-darker);
}

body.light-mode .login-screen-input::placeholder {
  color: var(--text-secondary);
}

body.light-mode .login-screen-label {
  color: var(--text-primary);
}

body.light-mode .login-screen-subtitle {
  color: var(--text-secondary);
}

body.light-mode .login-screen-helper-text {
  color: var(--text-secondary);
}

body.light-mode .login-screen-title {
  color: var(--text-primary);
}

/* ===== LOGOUT CONFIRMATION MODAL ===== */

.modal-logout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  animation: fadeInModal 0.2s ease-out;
}

.modal-logout.d-none {
  display: none !important;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-logout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-logout-content {
  position: relative;
  z-index: 5001;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: scaleInModal 0.3s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes scaleInModal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-logout-icon {
  font-size: 3rem;
  color: var(--warning-color);
  margin-bottom: 20px;
  animation: wiggle 0.5s ease-out;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

.modal-logout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.modal-logout-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
}

.modal-logout-actions {
  display: flex;
  gap: 12px;
}

.modal-logout-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-logout-cancel {
  background: var(--border-color);
  color: var(--text-primary);
}

.modal-logout-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-logout-cancel:active {
  transform: scale(0.98);
}

.modal-logout-confirm {
  background: var(--error-color);
  color: #fff;
}

.modal-logout-confirm:hover {
  background: #dc2626;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.modal-logout-confirm:active {
  transform: translateY(0);
}

/* Light mode */
body.light-mode .modal-logout-overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* Responsive modal actions for multiple buttons */
@media (max-width: 600px) {
  .modal-logout-actions {
    flex-direction: column;
  }

  .modal-logout-btn {
    min-width: 100%;
  }
}

/* Session Notification Styles */
.session-notification {
  position: fixed;
  top: 100px;
  right: -330px;
  width: 300px;
  background: linear-gradient(135deg, #0f5d9a 0%, #08396f 100%);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 14px;
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: white;
}

.session-notification.show {
  right: 16px;
}

.session-notification-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.session-notification-header i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.session-notification-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.session-notification-message {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.95;
}

.session-notification-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.session-notification-close-btn:hover {
  background: transparent;
  transform: scale(1.1);
}

.session-notification-close-btn:active {
  transform: scale(0.95);
}

.session-notification-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.session-notification-btn-close {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.session-notification-btn-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.session-notification-btn-close:active {
  transform: translateY(0);
}

/* Responsive design for session notification */
@media (max-width: 768px) {
  .session-notification {
    width: 90%;
    right: -100%;
    max-width: calc(100% - 20px);
  }

  .session-notification.show {
    right: 10px;
  }
}
/* Estilos para etiquetas personalizadas */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tag-badge button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.tag-badge button:hover {
  transform: scale(1.2);
}

/* Estilos para indicador de fortaleza de contraseña */
#strengthBar.weak {
  background: var(--error-color);
}

#strengthBar.fair {
  background: var(--warning-color);
}

#strengthBar.good {
  background: var(--success-color);
}

/* Responsive - Tag Input in Mobile */
@media (max-width: 768px) {
  #tagInputContainer {
    flex-direction: column;
    gap: 0.4rem;
  }

  #addTagBtn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    width: 100%;
  }

  #addTagBtn i {
    margin-right: 0.3rem;
  }
}

@media (max-width: 480px) {
  #tagInputContainer {
    flex-direction: column;
    gap: 0.3rem;
  }

  #addTagBtn {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.85rem !important;
    width: 100%;
  }
}

/* Responsive - Password Generator Modal */
@media (max-width: 768px) {
  .change-password-modal-dialog {
    max-width: 100% !important;
    margin: 0.5rem !important;
  }

  .change-password-modal-content {
    border-radius: 16px;
  }

  .change-password-header {
    padding: 20px;
  }

  .change-password-header .modal-title {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .change-password-header .btn-close {
    right: 15px;
    top: 15px;
    font-size: 1.2rem;
  }

  .change-password-body {
    padding: 20px;
  }

  .change-password-form-group {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .change-password-modal-dialog {
    max-width: 100% !important;
    margin: 0.3rem !important;
  }

  .change-password-header {
    padding: 16px;
  }

  .change-password-header .modal-title {
    font-size: 1.1rem;
    letter-spacing: 0.3px;
  }

  .change-password-body {
    padding: 16px;
  }

  .change-password-form-group {
    margin-bottom: 16px;
  }

  .change-password-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .change-password-input {
    padding: 10px 12px;
    font-size: 16px;
  }
}

/* Login Screen Slide Out Animation */
@keyframes slideOutLeft {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(-120%) scale(0.95);
    opacity: 0;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(-120%) scale(0.95);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.login-screen.slide-out-left {
  animation: slideOutLeft 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.login-screen.slide-in-right {
  animation: slideInRight 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
