/* admin-login.css - Professional Admin Login Styles - FIXED */

/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Animated Background ========== */
body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,127,80,0.08) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(10,116,255,0.08) 0%, transparent 50%);
  animation: rotate 25s linear infinite reverse;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Floating Particles ========== */
.particle {
  position: absolute;
  background: rgba(255,127,80,0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
  filter: blur(2px);
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 8px;
  height: 8px;
  top: 70%;
  left: 85%;
  animation-delay: 2s;
  background: rgba(10,116,255,0.4);
}

.particle:nth-child(3) {
  width: 7px;
  height: 7px;
  top: 85%;
  left: 30%;
  animation-delay: 4s;
  background: rgba(23,190,187,0.4);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-120px) translateX(60px) scale(1.2);
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
}

/* ========== Login Container ========== */
.login-container {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  padding: 3rem 2.5rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== Header ========== */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #FF7F50 0%, #ff6a3d 50%, #0A74FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(255,127,80,0.4),
    0 0 0 4px rgba(255,127,80,0.1);
  animation: logoFloat 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.login-logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 
      0 10px 30px rgba(255,127,80,0.4),
      0 0 0 4px rgba(255,127,80,0.1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
      0 15px 40px rgba(255,127,80,0.5),
      0 0 0 6px rgba(255,127,80,0.15);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.login-logo svg {
  width: 45px;
  height: 45px;
  color: white;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.login-header h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0A0A0A;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
  animation: fadeIn 0.8s ease-out 0.3s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Form Styles ========== */
#loginForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  position: relative;
  animation: fadeInSlide 0.6s ease-out backwards;
}

.form-row:nth-child(1) {
  animation-delay: 0.4s;
}

.form-row:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label svg {
  width: 16px;
  height: 16px;
  color: #FF7F50;
  flex-shrink: 0;
}

/* Input Wrapper para contener el input y los iconos */
.input-wrapper {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 1rem 3rem 1rem 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: #0A0A0A;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  line-height: 1.5;
}

.form-input:focus {
  border-color: #0A74FF;
  box-shadow: 0 0 0 4px rgba(10,116,255,0.1);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input.error {
  border-color: #ef4444;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.form-input:focus ~ .input-icon {
  color: #0A74FF;
}

.input-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ========== Password Toggle ========== */
.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.password-toggle:hover {
  background: rgba(10,116,255,0.1);
  color: #0A74FF;
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ========== Form Error ========== */
.form-error {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Submit Button ========== */
.btn {
  width: 100%;
  padding: 1.125rem 2rem;
  background: linear-gradient(135deg, #FF7F50 0%, #ff6a3d 50%, #0A74FF 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(255,127,80,0.3),
    0 0 0 0 rgba(255,127,80,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  animation: fadeInSlide 0.6s ease-out 0.6s backwards;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 24px rgba(255,127,80,0.4),
    0 0 0 4px rgba(255,127,80,0.2);
}

.btn:active {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ========== Loading State ========== */
.btn.loading {
  pointer-events: none;
}

.btn.loading .btn-text,
.btn.loading .btn-icon {
  opacity: 0;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Message Styles ========== */
#msg {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: none;
  animation: slideDownBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDownBounce {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#msg.error {
  display: block;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  border: 2px solid #fecaca;
}

#msg.success {
  display: block;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
  border: 2px solid #bbf7d0;
}

#msg.info {
  display: block;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  border: 2px solid #bfdbfe;
}

/* ========== Footer Links ========== */
.login-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  animation: fadeIn 0.8s ease-out 0.7s backwards;
}

.forgot-password {
  color: #0A74FF;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.forgot-password::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF7F50;
  transition: width 0.3s ease;
}

.forgot-password:hover {
  color: #FF7F50;
  transform: translateY(-2px);
}

.forgot-password:hover::after {
  width: 100%;
}

/* ========== Responsive Design ========== */
@media (max-width: 640px) {
  body {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  .login-container {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    max-width: 100%;
  }

  .login-logo {
    width: 75px;
    height: 75px;
    margin-bottom: 1.25rem;
  }

  .login-logo svg {
    width: 38px;
    height: 38px;
  }

  .login-header h2 {
    font-size: 1.625rem;
  }

  .login-subtitle {
    font-size: 0.875rem;
  }

  #loginForm {
    gap: 1.25rem;
  }

  .form-input {
    padding: 0.9rem 2.75rem 0.9rem 2.75rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  #msg {
    font-size: 0.85rem;
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 400px) {
  .login-container {
    padding: 2rem 1.5rem;
  }

  .login-logo {
    width: 70px;
    height: 70px;
  }

  .login-logo svg {
    width: 35px;
    height: 35px;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }

  .form-input {
    padding: 0.85rem 2.5rem 0.85rem 2.5rem;
    font-size: 0.875rem;
  }

  .input-icon svg {
    width: 18px;
    height: 18px;
  }

  .password-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* ========== Landscape Mobile ========== */
@media (max-width: 900px) and (orientation: landscape) {
  body {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .login-container {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before,
  body::after,
  .particle,
  .login-logo {
    animation: none;
  }
}

/* ========== Print Styles ========== */
@media print {
  body {
    background: white;
  }

  body::before,
  body::after,
  .particle {
    display: none;
  }

  .login-container {
    box-shadow: none;
    border: 1px solid #000;
  }
}







/* admin-dashboard.css - Professional Admin Dashboard */

/* ========== Variables ========== */
:root {
  --mamey: #FF7F50;
  --negro: #0A0A0A;
  --azul: #0A74FF;
  --turquesa: #17BEBB;
  --bg: #f8fafc;
  --bg-secondary: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0,0,0,0.1);
  --sidebar-width: 280px;
  --header-height: 70px;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #334155;
  --shadow: rgba(0,0,0,0.3);
}

/* ========== Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== Layout Container ========== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ========== Sidebar ========== */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 12px var(--shadow);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mamey), var(--azul));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,127,80,0.3);
}

.sidebar-logo svg {
  width: 24px;
  height: 24px;
  color: white;
}

.sidebar-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.sidebar-brand span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ========== Navigation ========== */
.sidebar-nav {
  flex: 1;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 0.375rem;
}

.nav-link:hover {
  background: rgba(255,127,80,0.1);
  color: var(--mamey);
  transform: translateX(4px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(255,127,80,0.15), rgba(10,116,255,0.15));
  color: var(--mamey);
  box-shadow: 0 2px 8px rgba(255,127,80,0.2);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, var(--mamey), var(--azul));
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: var(--mamey);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ========== Sidebar Footer ========== */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  background: var(--bg);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: linear-gradient(135deg, rgba(255,127,80,0.1), rgba(10,116,255,0.1));
  transform: translateY(-2px);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquesa), var(--azul));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ========== Mobile Menu Toggle ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 1rem;
  z-index: 1001;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--mamey);
  border-color: var(--mamey);
}

.mobile-menu-toggle:hover .menu-icon {
  color: white;
}

.menu-icon {
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: color 0.3s ease;
}

/* ========== Sidebar Overlay (Mobile) ========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ========== Main Content ========== */
.admin-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Top Bar ========== */
.top-bar {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.page-title-wrapper h1 {
  /* font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem; */
  font-size: 1.75rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-left: 0px;
  
}

/* =========================
   Modo responsive: tablets
   ========================= */
@media (max-width: 992px) {
  .page-title-wrapper {
    margin-left: 50px; /* un poco menos para tablet */
  }

  .page-title-wrapper h1 {
    font-size: 1.5rem;
  }

  .page-title-wrapper p {
    font-size: 0.8rem;
  }
}

/* =========================
   Modo responsive: móviles
   ========================= */
@media (max-width: 768px) {
  .page-title-wrapper {
    align-items: flex-start; /* alinea a la izquierda */
    margin-left: 10px;       /* más cerca del borde/menú */
    padding: 0 10px;         /* padding lateral */
  }

  .page-title-wrapper h1 {
    font-size: 1.25rem;       /* tamaño del título */
    margin-bottom: 0.5rem;    /* menos espacio debajo del título */
  }

  .page-title-wrapper p {
    font-size: 0.75rem;       /* tamaño del subtítulo */
    margin-top: -23px;          /* sube un poco el p hacia el h1 */
    text-align: left;          /* asegúrate de que quede alineado a la izquierda */
  }
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.icon-btn:hover {
  background: var(--mamey);
  border-color: var(--mamey);
  transform: translateY(-2px);
}

.icon-btn:hover svg {
  color: white;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* ========== Main Content Area ========== */
.content-wrapper {
  flex: 1;
  padding: 2rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* ========== Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--mamey), var(--azul));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleY(1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon.primary {
  background: linear-gradient(135deg, rgba(255,127,80,0.15), rgba(255,127,80,0.05));
  color: var(--mamey);
}

.stat-icon.success {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
  color: var(--success);
}

.stat-icon.info {
  background: linear-gradient(135deg, rgba(10,116,255,0.15), rgba(10,116,255,0.05));
  color: var(--azul);
}

.stat-icon.warning {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  color: var(--warning);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.stat-change.positive {
  background: rgba(34,197,94,0.1);
  color: var(--success);
}

.stat-change.negative {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}

.stat-change svg {
  width: 12px;
  height: 12px;
}

/* ========== Chart Section ========== */
.chart-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.section-actions {
  display: flex;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--mamey);
  color: var(--mamey);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--mamey), var(--azul));
  color: white;
  border-color: transparent;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* ========== Quick Actions ========== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, rgba(255,127,80,0.05), rgba(10,116,255,0.05));
  border-color: var(--mamey);
  border-style: solid;
  transform: translateY(-4px);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mamey), var(--azul));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.quick-action-icon svg {
  width: 24px;
  height: 24px;
}

.quick-action-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
}

/* ========== Loading State ========== */
.loading-skeleton {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }

  .content-wrapper {
    padding: 1.5rem;
  }

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

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-content {
    margin-left: 0;
  }

  .top-bar {
    padding: 0 1rem 0 5rem;
  }

  .content-wrapper {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .chart-section {
    padding: 1.5rem;
  }

  .chart-container {
    height: 250px;
  }

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

  .page-title-wrapper h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text)
  }
  .page-title-wrapper p {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .top-bar-actions {
    gap: 0.5rem;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ========== Print Styles ========== */
@media print {
  .admin-sidebar,
  .top-bar-actions,
  .mobile-menu-toggle,
  .quick-actions {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }
}







