:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-300: #7dd3fc;
  --sky-500: #0ea5e9;
  --sky-700: #0369a1;
  --text: #0f172a;
}

body {
  height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 50%, #f0fdfa 100%);
  font-family: "Inter", "Segoe UI", "Noto Sans", sans-serif;
  overflow: hidden;
  position: relative;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: -1;
  animation: blob-bounce 7s infinite;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(125, 211, 252, 0.6);
}

.blob-2 {
  top: 20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(103, 232, 249, 0.6);
  animation-delay: 2s;
}

.blob-3 {
  bottom: -20%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: rgba(147, 197, 253, 0.6);
  animation-delay: 4s;
}

@keyframes blob-bounce {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.glass-panel,
.content-shell,
.kanban-col,
.task-card,
.project-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: all 0.3s ease;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.72);
}

.modal-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.app-container {
  height: 100vh;
  padding: 1rem;
}

.main-content {
  border-radius: 1.5rem;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.sidebar {
  width: 256px;
  min-width: 256px;
  border-radius: 1.5rem;
  transition: margin 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  z-index: 1050;
}

@media (min-width: 768px) {
  .sidebar.collapsed-desktop {
    margin-left: calc(-256px - 1rem);
    opacity: 0;
    pointer-events: none;
  }
}

.app-brand-text {
  background: linear-gradient(to left, #0369a1, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-section-label {
  font-size: 10px;
  letter-spacing: 1px;
}

.nav-link-custom {
  color: #475569;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-custom:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #0284c7;
}

.nav-link-custom.active {
  background: rgba(255, 255, 255, 0.6);
  color: #0369a1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.project-selector {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.content-shell {
  width: 100%;
}

.brand {
  color: #0c4a6e;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-300), var(--sky-700));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-glass-btn {
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
}

.nav-glass-btn:hover,
.nav-glass-btn.active {
  border-color: rgba(14, 165, 233, 0.6);
  background: rgba(186, 230, 253, 0.45);
  color: #0c4a6e;
}

.btn-sky {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: 0;
}

.btn-sky:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-xs {
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  display: inline-block;
}

.project-card {
  border-left: 4px solid var(--project-color, var(--sky-500));
}

.table-glass {
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(14, 165, 233, 0.12);
}

.table-glass tbody tr:hover {
  background: rgba(186, 230, 253, 0.35);
}

.kanban-col {
  min-height: 12rem;
}

.task-card {
  background: rgba(255, 255, 255, 0.65);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-board-toolbar .btn.active {
  color: #075985;
  border-color: rgba(14, 165, 233, 0.7);
  background: rgba(186, 230, 253, 0.45);
}

.board-view {
  display: none;
}

.board-view.is-active {
  display: block;
}

.kanban-dropzone {
  min-height: 16rem;
  border: 1px dashed rgba(14, 165, 233, 0.2);
  border-radius: 0.85rem;
  padding: 0.55rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kanban-dropzone.drag-over {
  border-color: rgba(14, 165, 233, 0.75);
  background: rgba(224, 242, 254, 0.4);
}

.task-card {
  cursor: grab;
  border: 1px solid rgba(14, 165, 233, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.14);
}

.task-card.dragging {
  opacity: 0.65;
  cursor: grabbing;
}

.kanban-empty {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  padding: 0.8rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
}

.timeline-stack {
  display: grid;
  gap: 1rem;
}

.timeline-task {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
}

.timeline-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  margin-top: 1.2rem;
  background: #0ea5e9;
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.16);
}

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

.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.task-detail-grid span {
  display: block;
  font-size: 0.82rem;
}

.task-detail-grid strong {
  display: block;
  font-size: 0.95rem;
}

.timeline-grid {
  display: grid;
  gap: 0.9rem;
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.25);
}

.toast {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.3);
  backdrop-filter: blur(10px);
}

@media (max-width: 991.98px) {
  .app-container {
    padding: 0;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
    margin-left: 0;
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    border-radius: 0;
    height: 100%;
  }

  .task-detail-grid {
    grid-template-columns: 1fr;
  }
}

.login-page .content-shell {
  max-width: 1020px;
  margin: 1.5rem auto;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.login-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 640px;
}

.login-left {
  padding: 2rem;
  color: #eaf8ff;
  background: linear-gradient(160deg, #0284c7 0%, #0ea5e9 45%, #38bdf8 100%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.login-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0369a1;
  background: #fff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.login-brand h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.login-brand p {
  margin: 0;
  opacity: 0.9;
}

.login-left h3 {
  font-size: clamp(2.1rem, 3vw, 3.15rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-lead {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.login-feature {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.login-feature i {
  margin-right: 0.5rem;
}

.login-copy {
  margin-top: 1.4rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.login-right {
  background: #f8fafc;
  padding: 2rem;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.login-right h1 {
  font-size: clamp(2rem, 2.2vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.85rem;
  font-weight: 800;
  color: #1e293b;
}

.login-desc {
  color: #475569;
  font-size: 1.04rem;
  margin-bottom: 1.1rem;
}

.login-right .form-control,
.login-right .btn {
  border-radius: 0.6rem;
}

.login-right .form-control {
  min-height: 2.75rem;
}

.login-right .input-group .btn {
  border-color: #d6e3f3;
}

.login-demo-box {
  border: 1px dashed #bfdbfe;
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  background: #f1f5f9;
  color: #334155;
}

@media (max-width: 991.98px) {
  .login-page .content-shell {
    margin: 0.75rem auto;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-left,
  .login-right {
    padding: 1.25rem;
  }

  .login-left h3 {
    font-size: 2rem;
  }
}
