/* Tick Tick Dashboard - STYLESHEET */

:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #121829;
  --bg-glass: rgba(18, 24, 41, 0.6);
  --border-glass: rgba(255, 255, 255, 0.06);
  
  --primary: #5b21b6;
  --primary-light: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #7c3aed, #3b82f6);
  
  --accent-pomo: #ef4444;
  --accent-pomo-gradient: linear-gradient(135deg, #f87171, #ef4444);
  --accent-time: #0ea5e9;
  --accent-time-gradient: linear-gradient(135deg, #38bdf8, #0284c7);
  --accent-tasks: #10b981;
  --accent-tasks-gradient: linear-gradient(135deg, #34d399, #059669);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0a0f1d;
  
  --sidebar-width: 280px;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-family: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.12) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button, input {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Layout SPA */
.screen {
  min-height: 100vh;
  display: flex;
}

/* PANTALLA DE AUTENTICACIÓN */
#auth-screen {
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.auth-header {
  margin-bottom: 2.5rem;
}

.auth-logo-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.auth-logo-icon {
  font-size: 2.5rem;
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-body {
  margin-bottom: 2.5rem;
}

.auth-description {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* PANTALLA PRINCIPAL CON SIDEBAR */
#app-screen {
  flex-direction: row;
}

/* Barra lateral */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 15, 29, 0.8);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 0.5rem;
}

.brand-icon {
  font-size: 1.8rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.menu-item:hover, .menu-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.menu-icon {
  font-size: 1.25rem;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

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

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

/* Área principal */
.main-layout {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.app-header {
  padding: 2.5rem 3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
}

#view-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.header-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-refresh {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-refresh:active {
  transform: scale(0.98);
}

.refresh-icon {
  display: inline-block;
  transition: transform 0.5s ease;
}

.btn-refresh:hover .refresh-icon {
  transform: rotate(180deg);
}

.content-container {
  padding: 3rem;
  flex-grow: 1;
}

/* VISTA DE FOCUS */
.view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.4s ease;
}

/* Grid de Tarjetas de Estadísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.pomo-icon {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.time-icon {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.tasks-icon {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Tarjeta de Tabla */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.badge {
  background: var(--primary-gradient);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
}

.focus-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.focus-table th, .focus-table td {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border-glass);
}

.focus-table th {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
}

.focus-table tbody tr {
  transition: var(--transition-smooth);
}

.focus-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

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

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

.task-title-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-title-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.task-sub-info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pomo-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}

.time-text {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Barra de progreso de porcentaje */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.progress-bar-bg {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.progress-label {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 38px;
}

/* Estados especiales en la tabla */
.loading-row td, .empty-row td, .error-row td {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.table-loader, .empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.empty-icon {
  font-size: 2.5rem;
}

.error-icon {
  font-size: 2.5rem;
  color: #ef4444;
}

.error-text {
  color: #f87171;
  font-weight: 500;
}

/* TOASTS */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10000;
}

.toast {
  background: rgba(18, 24, 41, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.danger {
  border-left: 4px solid #ef4444;
  color: #f87171;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* Responsivo */
@media (max-width: 1024px) {
  #app-screen {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
  }
  
  .sidebar-brand {
    margin-bottom: 0;
  }
  
  .sidebar-menu {
    flex-direction: row;
    flex-grow: 0;
  }
  
  .sidebar-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  
  .user-profile {
    display: none;
  }
  
  .main-layout {
    height: auto;
    overflow-y: visible;
  }
  
  .app-header {
    padding: 2rem;
  }
  
  .content-container {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .sidebar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .sidebar-menu {
    justify-content: center;
  }
  
  .sidebar-footer {
    justify-content: space-between;
  }
  
  .content-container {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .focus-table th:nth-child(4), .focus-table td:nth-child(4) {
    display: none; /* Ocultar barra de porcentaje en móviles extremos */
  }

}

/* Filtros por Rango de Fechas en la Cabecera */
.range-filters-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.filter-input-group input[type="date"] {
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.filter-input-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.filter-input-group input[type="date"]:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.06);
}

.btn-filter {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

.btn-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-filter-sync {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-filter-sync:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-filter-sync .refresh-icon {
  display: inline-block;
  transition: transform 0.5s ease;
}

.btn-filter-sync:hover .refresh-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .range-filters-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    padding: 1rem;
  }
  .filter-input-group {
    justify-content: space-between;
  }
  .range-filters-container button {
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* CONFIGURACIÓN FORM */
.settings-card {
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.settings-card .card-body {
  padding: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input[type="number"] {
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-group input[type="number"]:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* CÓDIGO DE TAREAS Y BADGES */
.task-title-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.task-code-badge {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--primary-light);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.05);
}

.task-code-badge.default-code {
  color: var(--text-muted);
  border-color: var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

/* DETALLE DE SESIONES ACCORDION */
.task-main-row {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.task-main-row:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.task-main-row.expanded {
  background: rgba(124, 58, 237, 0.04) !important;
}

.task-details-row {
  background: rgba(10, 15, 29, 0.4);
}

.task-details-row td {
  padding: 0 !important; /* Reset padding for details cell to prevent table spacing issues */
}

.sessions-details-container {
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-glass);
  animation: slideDown 0.3s ease;
}

.sessions-details-container h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sessions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
}

.session-type {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.session-date {
  color: var(--text-main);
}

.session-duration {
  color: var(--primary-light);
  font-weight: 600;
  margin-left: auto; /* Push duration to the right side of the list item */
}

.session-note {
  color: var(--text-muted);
  font-style: italic;
  margin-left: 1rem;
}

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

.btn-delete-session {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-delete-session:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* REFRESCAR NOMBRE DE TAREA INDIVIDUAL */
.details-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.details-header-row h4 {
  margin-bottom: 0 !important; /* Reset margin since we are using flex box spacing */
}

.btn-refresh-task-name {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.btn-refresh-task-name:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
  color: var(--primary-light);
}

.btn-refresh-task-name.spinning .refresh-icon-spin {
  animation: spinTaskName 1s linear infinite;
  display: inline-block;
}

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

/* PESTAÑAS (TABS) */
.tab-group {
  display: inline-flex;
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* Icono para tarjeta de pendiente */
.pending-icon {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

