* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f7fb;
  color: #1f2937;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 0;
}

.badge {
  background-color: #111827;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.grid {
  display: grid;
  gap: 20px;
}

.two-columns {
  grid-template-columns: 1fr 1fr;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: bold;
  font-size: 14px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background-color: #ffffff;
}

textarea {
  resize: vertical;
}

button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  background-color: #2563eb;
  color: white;
  font-weight: bold;
  transition: 0.2s ease;
}

button:hover {
  opacity: 0.92;
}

.secondary-button {
  background-color: #6b7280;
}

.user-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tasks-layout {
  align-items: start;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.task-item {
  border: 1px solid #e5e7eb;
  border-left: 6px solid #3b82f6;
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}

.task-item h3 {
  margin-bottom: 8px;
}

.task-status {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.task-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: bold;
}

.message.success {
  background-color: #dcfce7;
  color: #166534;
}

.message.error {
  background-color: #fee2e2;
  color: #991b1b;
}

.hidden {
  display: none !important;
}

@media (max-width: 850px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .topbar,
  .user-panel {
    flex-direction: column;
    align-items: stretch;
  }
}
.task-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.filter-box {
  min-width: 180px;
}

@media (max-width: 850px) {
  .tasks-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-box {
    min-width: auto;
  }
}
.date-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hours-input-wrapper {
  position: relative;
}

.hours-input-wrapper input {
  padding-right: 42px;
}

.hours-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: bold;
  pointer-events: none;
}

.status-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.status-badge.todo {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.in-progress {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.status-badge.done {
  background-color: #dcfce7;
  color: #166534;
}

.task-meta {
  margin: 10px 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.task-main-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.task-secondary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-start {
  background-color: #2563eb;
}

.action-finish {
  background-color: #16a34a;
}

.action-reset {
  background-color: #f59e0b;
  color: white;
}

@media (max-width: 850px) {
  .date-range-grid {
    grid-template-columns: 1fr;
  }
}
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.project-item {
  border: 1px solid #e5e7eb;
  border-left: 6px solid #6366f1;
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}

.project-item h3 {
  margin-bottom: 8px;
}

.project-item p {
  color: #4b5563;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.project-open-button {
  background-color: #2563eb;
}

.project-details-header {
  margin-bottom: 20px;
}
.project-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.project-subnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.subnav-button {
  background-color: #e5e7eb;
  color: #111827;
}

.subnav-button.active {
  background-color: #2563eb;
  color: white;
}

.project-tab {
  margin-top: 20px;
}

.project-info-box p {
  margin-bottom: 10px;
}

@media (max-width: 850px) {
  .project-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}