@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e5e7eb;
  --card: #f9fafb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--card);
  color: var(--fg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

header {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
}

header .muted {
  margin: 0;
  font-size: 0.95rem;
}

main {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

button,
input,
select {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

button {
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}

button:hover {
  background: var(--card);
  border-color: var(--muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

input,
select {
  background: var(--bg);
  color: var(--fg);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-wrapper span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.search-wrapper {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 400px;
}

.search-wrapper input {
  flex: 1;
}

.panel {
  padding: 3rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 300px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.status {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.status .completed {
  color: var(--success);
}

.status .pending {
  color: var(--warning);
}

.status .overdue {
  color: var(--danger);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.stat h3 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}


.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: var(--bg);
    border-color: var(--accent);
}

.tag-more {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 500;
}


.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Poppins', sans-serif;
}

.table tr:hover {
  background: var(--card);
}

footer {
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: auto;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  main {
    padding: 1rem;
  }
  
  .toolbar {
    padding: 1rem;
  }
  
  .search-wrapper {
    max-width: 100%;
  }
}
