@charset "UTF-8";
@import url(../fonts/stylesheet.css);
:root {
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-light: #f3f4f6;
  --secondary-color: #ec4899;
  --secondary-hover: #db2777;
  --background: #faf7ff;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-hover: rgba(255, 255, 255, 0.85);
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: rgba(139, 92, 246, 0.2);
  --border-focus: var(--primary-color);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --gradient-bg: linear-gradient(135deg, #faf7ff 0%, #f3e8ff 50%, #fdf2f8 100%);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(139, 92, 246, 0.3);
  --priority-low: var(--success);
  --priority-medium: var(--warning);
  --priority-high: var(--error);
  --border-radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #312e81;
    --secondary-color: #8b5cf6;
    --secondary-hover: #7c3aed;
    --background: #1a1a2e;
    --surface: rgba(45, 45, 65, 0.8);
    --surface-hover: rgba(45, 45, 65, 0.95);
    --text-primary: #e2e8f0;
    --text-secondary: #a2a9b3;
    --text-muted: #7c848d;
    --border: rgba(99, 102, 241, 0.25);
    --border-focus: var(--primary-color);
    --success: #22d3aa;
    --warning: #ffb340;
    --error: #ff6b7a;
    --gradient-bg: linear-gradient(
      135deg,
      #1a1a2e 0%,
      #262650 50%,
      #3a3278 100%
    );
    --glass-bg: rgba(45, 45, 65, 0.6);
    --glass-border: rgba(99, 102, 241, 0.2);
    --priority-low: var(--success);
    --priority-medium: var(--warning);
    --priority-high: var(--error);
  }
}

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

body {
  font-family: "Inter 18pt", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  font-size: clamp(14px, 1.5vw, 16px);
  padding: clamp(1rem, 4vw, 2rem) !important;
}
body.swal2-shown {
  overflow-y: auto !important;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  min-height: calc(100vh - clamp(2rem, 8vw, 4rem));
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}
.header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.input-section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: end;
  position: relative;
  overflow: hidden;
}
.input-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
@media (max-width: 768px) {
  .input-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type=text],
select {
  padding: clamp(1rem, 3vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: clamp(12px, 2vw, 16px);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}
input[type=text]:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), var(--shadow-md);
  transform: translateY(-2px);
  background: var(--surface-hover);
}
input[type=text]::-moz-placeholder, select::-moz-placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
input[type=text]::placeholder,
select::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.btn {
  padding: clamp(1rem, 3vw, 1.25rem) clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--glass-border);
  border-radius: clamp(12px, 2vw, 16px);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  animation: pulse 3s infinite;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}
.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
  padding: 0;
  min-width: clamp(2.5rem, 6vw, 3rem);
  min-height: clamp(2.5rem, 6vw, 3rem);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-color-scheme: dark) {
  .btn-danger {
    background: linear-gradient(135deg, rgba(255, 107, 122, 0.65), rgba(220, 38, 38, 0.55));
  }
  .btn-danger:hover, .btn-danger:focus {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.7));
  }
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}
.btn-danger img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.tasks-container {
  flex: 1;
  min-height: 300px;
}

.task-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 1.5rem);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.task-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s ease;
}
.task-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
  background: var(--surface-hover);
  border-color: var(--primary-color);
}
.task-item:hover::before {
  width: 6px;
}

.task-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-text {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: -moz-fit-content;
  width: fit-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}
.priority-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.priority-badge.priority-low {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}
.priority-badge.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}
.priority-badge.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
}
@media (prefers-color-scheme: dark) {
  .priority-badge.priority-low {
    background: rgba(34, 211, 170, 0.15);
    color: #5de8c4;
    border-color: rgba(34, 211, 170, 0.3);
  }
  .priority-badge.priority-medium {
    background: rgba(255, 179, 64, 0.15);
    color: #ffc970;
    border-color: rgba(255, 179, 64, 0.3);
  }
  .priority-badge.priority-high {
    background: rgba(255, 107, 122, 0.15);
    color: #ff9aa6;
    border-color: rgba(255, 107, 122, 0.3);
  }
}

.empty-state {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px dashed var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}
.empty-state::before {
  content: "✨";
  display: block;
  font-size: clamp(3rem, 8vw, 4rem);
  margin-bottom: 1rem;
  opacity: 0.8;
}
.empty-state h3 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 3vw, 1.125rem);
}

@media (max-width: 640px) {
  .task-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .task-content {
    align-items: flex-start;
  }
  .btn-danger {
    align-self: flex-end;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.25rem);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(139, 92, 246, 0.15);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes shake-horizontal {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70% {
    transform: translateX(-10px);
  }
  20%, 40%, 60% {
    transform: translateX(10px);
  }
  80% {
    transform: translateX(8px);
  }
  90% {
    transform: translateX(-8px);
  }
}
.hidden {
  display: none !important;
}

.error {
  box-shadow: 0 0 0 2px var(--error) !important;
}

.shake-horizontal {
  animation: shake-horizontal 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}

.swal2-container {
  -webkit-backdrop-filter: blur(5px) !important;
          backdrop-filter: blur(5px) !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  cursor: pointer;
}

.swal2-popup.swal2-modal {
  background: var(--background);
}
@media (prefers-color-scheme: dark) {
  .swal2-popup.swal2-modal {
    background-color: rgb(45, 45, 65);
  }
}

.swal2-html-container {
  color: var(--text-primary);
}