* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif; background:#f0f2f5; }
.app { max-width:1200px; margin:0 auto; padding:20px; }

.navbar { display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); padding:14px 24px; border-radius:12px; color:white; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.nav-brand { font-weight:bold; font-size:20px; }
.nav-links { display:flex; gap:20px; flex-wrap:wrap; }
.nav-links a { color:white; text-decoration:none; padding:4px 8px; border-radius:6px; }
.nav-links a:hover, .nav-links a.active { background:rgba(255,255,255,0.2); }

.container { background:white; padding:24px; border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,0.08); }
.page-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
h1 { color:#2c3e50; }

.btn-primary { background:#667eea; color:white; border:none; padding:10px 18px; border-radius:8px; cursor:pointer; font-weight:bold; }
.btn-primary:hover { background:#5a6fd6; }
.btn-secondary { background:#95a5a6; color:white; border:none; padding:8px 16px; border-radius:6px; cursor:pointer; }
.btn-secondary:hover { background:#7f8c8d; }
.btn-success { background:#27ae60; }
.btn-warning { background:#f39c12; }
.btn-danger { background:#e74c3c; }
.btn-sm { padding:4px 10px; font-size:12px;    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;color: #fff; }

.filters { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.filters select, .filters input { padding:8px 12px; border:1px solid #ddd; border-radius:6px; background:white; }

.card-list { display:flex; flex-direction:column; gap:12px; }
.card { background:#fafafa; padding:14px 18px; border-radius:10px; border-right:4px solid #667eea; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.card.done { border-right-color:#27ae60; background:#f8fff8; }
.card.pending { border-right-color:#f39c12; background:#fffbf0; }
.card-info { flex:1; min-width:150px; }
.card-title { font-weight:bold; color:#2c3e50; }
.card-desc { color:#555; font-size:14px; margin-top:4px; }
.card-meta { font-size:12px; color:#888; margin-top:4px; }
.card-actions { display:flex; gap:6px; flex-wrap:wrap; }

.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; margin-top:20px; }
.stat-card { background:#f8f9fa; padding:16px; border-radius:10px; text-align:center; }
.stat-card span { display:block; color:#555; font-size:14px; }
.stat-card strong { font-size:28px; color:#2c3e50; }
.stat-card.done strong { color:#27ae60; }
.stat-card.pending strong { color:#f39c12; }

.pagination { display:flex; justify-content:center; gap:8px; margin-top:20px; flex-wrap:wrap; }
.pagination button { padding:6px 12px; border:1px solid #ddd; border-radius:6px; background:white; cursor:pointer; }
.pagination button.active { background:#667eea; color:white; border-color:#667eea; }

.modal { display:none; position:fixed; z-index:1000; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.5); align-items:center; justify-content:center; }
.modal-content { background:white; padding:30px; border-radius:12px; max-width:500px; width:90%; max-height:90vh; overflow-y:auto; position:relative; }
.close { position:absolute; top:12px; right:20px; font-size:28px; cursor:pointer; }
.form-group { margin-bottom:16px; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:10px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; }
.form-group textarea { resize:vertical; min-height:80px; }

@media (max-width:600px) {
  .navbar { flex-direction:column; align-items:stretch; text-align:center; }
  .nav-links { justify-content:center; }
  .page-header { flex-direction:column; align-items:stretch; }
}


/* Login page specific */
body.login-page {
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}
.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
}
.login-header h2 {
  margin: 0;
  font-size: 24px;
}
.login-header p {
  margin: 8px 0 0 0;
  opacity: 0.85;
  font-size: 14px;
}
.login-card .form-group {
  padding: 0 24px;
  margin: 18px 0;
}
.login-card .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s;
}
.login-card .form-group input:focus {
  border-color: #667eea;
  outline: none;
}
.login-card button {
  margin: 8px 24px 24px 24px;
  width: calc(100% - 48px);
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.login-card button:hover {
  background: #5a6fd6;
}
.login-card .error {
  background: #fee;
  color: #c0392b;
  padding: 10px 16px;
  margin: 16px 24px 0 24px;
  border-radius: 6px;
  text-align: center;
}
.login-footer {
  text-align: center;
  padding: 16px 24px 24px;
  color: #888;
  font-size: 13px;
}


.modal-content h2{
  margin-bottom: 10px;
}