/* TaskFlow Enterprise - CSS Personalizado Bootstrap 5.3 & Modo Oscuro */
:root {
  --bg-main: #f4f6f9;
  --bg-card: #ffffff;
  --text-color: #212529;
  --border-color: rgba(0, 0, 0, 0.08);
  --sidebar-bg: #1e293b;
  --sidebar-color: #cbd5e1;
  --sidebar-active: #00f0ff;
  --navbar-bg: #ffffff;
}

[data-bs-theme="dark"] {
  --bg-main: #0b1326;
  --bg-card: #131b2e;
  --text-color: #dae2fd;
  --border-color: rgba(218, 226, 253, 0.1);
  --sidebar-bg: #060e20;
  --sidebar-color: #94a3b8;
  --sidebar-active: #00f0ff;
  --navbar-bg: #131b2e;
}

body {
  background-color: var(--bg-main);
  color: var(--text-color);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Wrapper & Layout */
.app-wrapper {
  display: flex;
  width: 100%;
  flex: 1;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-color);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 100;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.sidebar.collapsed .sidebar-logo {
  height: 36px;
  max-width: 60px;
}

.sidebar.collapsed .sidebar-brand-text {
  display: none;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  flex: 1;
}

.sidebar-item {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  color: var(--sidebar-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: var(--sidebar-active);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: var(--sidebar-active) !important;
  background: rgba(0, 240, 255, 0.12) !important;
  font-weight: 700;
  border-start: 4px solid var(--sidebar-active);
}

.sidebar-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar.collapsed .sidebar-text {
  display: none;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Navbar Upper */
.navbar-top {
  background-color: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
}

/* Glass & Cards */
.card-custom {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Login Page Styling */
.login-body {
  background: linear-gradient(135deg, #0b1326 0%, #171f33 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  background: rgba(23, 31, 51, 0.85);
  border: 1px solid rgba(218, 226, 253, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 1rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  color: #dae2fd;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Adaptive Typography & Badges for Light/Dark modes */
.task-card-title {
  color: var(--text-color);
  font-weight: 700;
}

.adaptive-badge-user {
  background-color: rgba(0, 240, 255, 0.1);
  color: #008899;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

[data-bs-theme="dark"] .adaptive-badge-user {
  background-color: rgba(0, 0, 0, 0.4);
  color: #00f0ff;
  border: 1px solid rgba(218, 226, 253, 0.2);
}

