/* ══════════════════════════════════════════════════════════════════════
   GLOBAL STYLES
   ══════════════════════════════════════════════════════════════════════ */

/* ── Global transitions (scoped for performance) ─────────────────── */
.sidebar-btn,
.sidebar-separator,
.mode-btn,
.btn-primary,
.card-hover,
.editable-cell,
.inline-edit-input,
.movement-action-btn,
.movement-type-badge {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow;
  transition-duration: 350ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Fade-in animation ──────────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Card hover elevation ───────────────────────────────────────────── */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 350ms ease,
    border-color 350ms ease !important;
}

.dark .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15), 0 8px 30px -8px rgba(0, 0, 0, 0.6);
}

html:not(.dark) .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px -8px rgba(0, 175, 154, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── Spin-off number inputs ─────────────────────────────────────────── */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* ── Grid pattern (empty state card) ────────────────────────────────── */
.grid-pattern {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.dark .grid-pattern {
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Grid background (full-page degraded grid) ─────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 175, 154, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 175, 154, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 40%, transparent 100%);
}

.dark .grid-bg {
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* ── Scrollbar (dark) ───────────────────────────────────────────────── */
.dark ::-webkit-scrollbar { width: 6px; height: 6px; }
.dark ::-webkit-scrollbar-track { background: #0d111c; }
.dark ::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 6px; }

/* ── Scrollbar (light) ──────────────────────────────────────────────── */
html:not(.dark) ::-webkit-scrollbar { width: 6px; height: 6px; }
html:not(.dark) ::-webkit-scrollbar-track { background: #f8fafc; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }

/* ── Focus rings ────────────────────────────────────────────────────── */
.dark .field-focus:focus {
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  outline: none;
}

html:not(.dark) .field-focus:focus {
  border-color: rgba(0, 175, 154, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(0, 175, 154, 0.15);
  outline: none;
}

/* ── Accent text gradient ───────────────────────────────────────────── */
.dark .accent-text {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html:not(.dark) .accent-text {
  background: linear-gradient(135deg, #00AF9A, #74E0C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gradient button ────────────────────────────────────────────────── */
.dark .btn-primary {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.dark .btn-primary:hover {
  background: linear-gradient(135deg, #a855f7, #f472b6);
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}

html:not(.dark) .btn-primary {
  background: linear-gradient(135deg, #00AF9A, #74E0C1);
  box-shadow: 0 4px 20px rgba(0, 175, 154, 0.3);
}

html:not(.dark) .btn-primary:hover {
  background: linear-gradient(135deg, #00c9b1, #85e8ce);
  box-shadow: 0 4px 24px rgba(0, 175, 154, 0.4);
}

/* ── Total accent gradient ──────────────────────────────────────────── */
.dark .total-accent {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html:not(.dark) .total-accent {
  background: linear-gradient(135deg, #00AF9A, #74E0C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Logo icon ──────────────────────────────────────────────────────── */
.dark .logo-icon {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
}

html:not(.dark) .logo-icon {
  background: linear-gradient(135deg, #00AF9A, #74E0C1);
  box-shadow: 0 4px 16px rgba(0, 175, 154, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════
   SIDEBAR LAYOUT
   ══════════════════════════════════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.dark .sidebar {
  background: rgba(5, 7, 15, 0.85);
  border-right: 1px solid rgba(168, 85, 247, 0.12);
}

html:not(.dark) .sidebar {
  background: rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.sidebar-separator {
  width: 28px;
  height: 1px;
  margin: 8px 0;
}

.dark .sidebar-separator { background: rgba(168, 85, 247, 0.15); }
html:not(.dark) .sidebar-separator { background: rgba(0, 0, 0, 0.08); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0 8px;
}

/* ── Sidebar Buttons ─────────────────────────────────────────────────── */
.sidebar-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .sidebar-btn { color: #64748b; background: transparent; }
html:not(.dark) .sidebar-btn { color: #94a3b8; background: transparent; }

.dark .sidebar-btn:hover {
  color: #e2e8f0;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}

html:not(.dark) .sidebar-btn:hover {
  color: #475569;
  background: rgba(0, 175, 154, 0.08);
  border-color: rgba(0, 175, 154, 0.15);
}

.sidebar-btn.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.1);
}

html:not(.dark) .sidebar-btn.active {
  color: #00AF9A;
  background: rgba(0, 175, 154, 0.1);
  border-color: rgba(0, 175, 154, 0.2);
  box-shadow: 0 0 16px rgba(0, 175, 154, 0.08);
}

/* Active indicator bar */
.dark .sidebar-btn.active::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c084fc, #f472b6);
}

html:not(.dark) .sidebar-btn.active::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00AF9A, #74E0C1);
}

.sidebar-btn:active { transform: scale(0.92); }

/* ── Sidebar Tooltip ─────────────────────────────────────────────────── */
.sidebar-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.dark .sidebar-tooltip {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html:not(.dark) .sidebar-tooltip {
  background: white;
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-btn:hover .sidebar-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

/* ── Theme toggle icon rotation ──────────────────────────────────────── */
.sidebar-btn#themeToggle svg {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.sidebar-btn#themeToggle:hover svg {
  transform: rotate(20deg) scale(1.1);
}

/* ══════════════════════════════════════════════════════════════════════
   APP CONTENT LAYOUT
   ══════════════════════════════════════════════════════════════════════ */

.app-content {
  margin-left: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.dark .app-header {
  background: rgba(5, 7, 15, 0.7);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

html:not(.dark) .app-header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-main {
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ══════════════════════════════════════════════════════════════════════
   CANVAS & Z-INDEX
   ══════════════════════════════════════════════════════════════════════ */

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: auto;
}

main,
header {
  position: relative;
  z-index: 10;
}

/* ══════════════════════════════════════════════════════════════════════
   TODAY MOVEMENTS - EDITABLE TABLE
   ══════════════════════════════════════════════════════════════════════ */

.today-movements-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.today-movements-table th {
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  border-bottom: 1px solid;
}

.dark .today-movements-table th {
  color: #64748b;
  border-color: rgba(168, 85, 247, 0.12);
}

html:not(.dark) .today-movements-table th {
  color: #94a3b8;
  border-color: rgba(0, 0, 0, 0.06);
}

.today-movements-table td {
  padding: 6px 10px;
  font-size: 13px;
  vertical-align: middle;
  border-bottom: 1px solid;
}

.dark .today-movements-table td {
  border-color: rgba(168, 85, 247, 0.06);
}

html:not(.dark) .today-movements-table td {
  border-color: rgba(0, 0, 0, 0.04);
}

.today-movements-table tr:last-child td {
  border-bottom: none;
}

/* ── Editable cell ──────────────────────────────────────────────────── */
.editable-cell {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 6px;
  min-width: 40px;
  transition: background-color 0.15s ease;
}

.dark .editable-cell:hover {
  background: rgba(168, 85, 247, 0.06);
}

html:not(.dark) .editable-cell:hover {
  background: rgba(0, 175, 154, 0.06);
}

/* ── Inline input ───────────────────────────────────────────────────── */
.inline-edit-input {
  width: 100%;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dark .inline-edit-input {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
}

html:not(.dark) .inline-edit-input {
  background: rgba(248, 250, 252, 0.9);
  color: #1e293b;
}

.dark .inline-edit-input:focus {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.12);
}

html:not(.dark) .inline-edit-input:focus {
  border-color: rgba(0, 175, 154, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 175, 154, 0.12);
}

/* ── Movement row hover ─────────────────────────────────────────────── */
.dark .today-movements-table tbody tr:hover {
  background: rgba(168, 85, 247, 0.03);
}

html:not(.dark) .today-movements-table tbody tr:hover {
  background: rgba(0, 175, 154, 0.03);
}

/* ── Type badge ─────────────────────────────────────────────────────── */
.movement-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.movement-type-badge.ingreso {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.dark .movement-type-badge.ingreso {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.movement-type-badge.venta {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.dark .movement-type-badge.venta {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.movement-type-badge.deuda {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.dark .movement-type-badge.deuda {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

/* ── Action buttons ─────────────────────────────────────────────────── */
.movement-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 1;
  transition: background-color 0.15s ease;
}

.dark .movement-action-btn {
  color: #64748b;
}

html:not(.dark) .movement-action-btn {
  color: #94a3b8;
}

.dark .movement-action-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

html:not(.dark) .movement-action-btn:hover {
  background: rgba(0, 175, 154, 0.1);
  color: #00AF9A;
}

.movement-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.today-movements-table tbody tr:hover .movement-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── Saved indicator ────────────────────────────────────────────────── */
@keyframes saved-flash {
  0% { background: rgba(16, 185, 129, 0.15); }
  100% { background: transparent; }
}

.row-saved {
  animation: saved-flash 0.6s ease-out;
}

/* ── Modified row indicator ─────────────────────────────────────────── */
.today-movements-table tbody tr.row-modified {
  border-left: 3px solid #f59e0b;
}

.dark .today-movements-table tbody tr.row-modified {
  background: rgba(245, 158, 11, 0.08);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.15);
}

html:not(.dark) .today-movements-table tbody tr.row-modified {
  background: rgba(245, 158, 11, 0.06);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}

/* ── Empty state for movements ──────────────────────────────────────── */
.today-movements-empty {
  text-align: center;
  padding: 24px 16px;
}

/* ── Collapsible body ──────────────────────────────────────────────── */
.today-movements-body {
  overflow: hidden;
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
  padding-bottom: 20px;
}

.today-movements-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

#btnToggleTodayMovements svg {
  transition: transform 0.3s ease;
}

#btnToggleTodayMovements.collapsed svg {
  transform: rotate(-90deg);
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .sidebar { width: 52px; }

  .sidebar-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .sidebar-btn svg {
    width: 16px;
    height: 16px;
  }

  .app-content { margin-left: 52px; }
  .app-main { padding: 16px 16px 32px; }
  .sidebar-tooltip { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD 2-COLUMN LAYOUT
   ══════════════════════════════════════════════════════════════════════ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

.dashboard-col-left {
  min-width: 0;
}

.dashboard-col-right {
  min-width: 0;
}

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

/* ══════════════════════════════════════════════════════════════════════
   FORM MODAL
   ══════════════════════════════════════════════════════════════════════ */

.form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.form-modal-overlay.hidden {
  display: none;
}

.dark .form-modal-overlay {
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html:not(.dark) .form-modal-overlay {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-modal {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .form-modal {
  background: #0d111c;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.08);
}

html:not(.dark) .form-modal {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════════════════════════════
   LOGIN OVERLAY
   ══════════════════════════════════════════════════════════════════════ */

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .login-overlay {
  background: #05070f;
}

html:not(.dark) .login-overlay {
  background: #f3f4f6;
}

.login-card {
  position: relative;
  text-align: center;
  padding: 48px 40px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .login-card {
  background: #0d111c;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(168, 85, 247, 0.08);
}

html:not(.dark) .login-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.dark .login-icon {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

html:not(.dark) .login-icon {
  background: rgba(0, 175, 154, 0.1);
  border: 1px solid rgba(0, 175, 154, 0.2);
}

.login-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dark .login-title { color: #e2e8f0; }
html:not(.dark) .login-title { color: #1e293b; }

.login-subtitle {
  font-size: 13px;
  margin-bottom: 28px;
}

.dark .login-subtitle { color: #64748b; }
html:not(.dark) .login-subtitle { color: #94a3b8; }

.login-btn-microsoft {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: #0078D4;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 120, 212, 0.35);
}

.login-btn-microsoft:hover {
  background: #106ebe;
  box-shadow: 0 4px 24px rgba(0, 120, 212, 0.45);
  transform: translateY(-1px);
}

.login-btn-microsoft:active {
  transform: scale(0.97);
}

.login-error {
  display: none;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
}

.dark .login-error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

html:not(.dark) .login-error {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.login-error.visible {
  display: block;
  animation: fade-in 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════════
   SKELETON LOADING
   ══════════════════════════════════════════════════════════════════════ */

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}

.skeleton {
  border-radius: 12px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.dark .skeleton {
  background: rgba(168, 85, 247, 0.08);
}

html:not(.dark) .skeleton {
  background: rgba(0, 175, 154, 0.08);
}

.skeleton-card {
  height: 140px;
  border-radius: 16px;
}

.skeleton-row {
  height: 40px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════════════════
   FULLSCREEN TABLE MODE
   ══════════════════════════════════════════════════════════════════════ */

.table-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.dark .table-fullscreen-overlay {
  background: rgba(2, 6, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html:not(.dark) .table-fullscreen-overlay {
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.table-fullscreen-active {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  z-index: 10000;
}

.dark .table-fullscreen-active {
  background: #0a0f1a;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

html:not(.dark) .table-fullscreen-active {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.table-fullscreen-active .today-movements-table {
  min-width: 100%;
}

.fullscreen-exit-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s;
  pointer-events: none;
}

.dark .fullscreen-exit-hint {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

html:not(.dark) .fullscreen-exit-hint {
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
