
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --border: #e5eaf2;
  --border-strong: #d6deea;
  --text: #172033;
  --text-soft: #344054;
  --muted: #718096;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --sidebar: #111827;
  --sidebar-soft: #1f2937;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --info: #0284c7;
  --info-soft: #f0f9ff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 160ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(79, 70, 229, 0.08), transparent 25%),
    linear-gradient(180deg, #f8faff 0%, var(--bg) 38%);
  -webkit-font-smoothing: antialiased;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(99, 102, 241, 0.24), transparent 34%),
    radial-gradient(circle at 90% 85%, rgba(14, 165, 233, 0.16), transparent 30%),
    #0f172a;
}

.login-card {
  width: min(440px, 100%);
  padding: 38px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(20px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #4338ca);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.34);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 13px;
  font-size: 0.86rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.login-copy {
  margin: 10px 0 26px;
  color: var(--muted);
  line-height: 1.65;
}

.login-card form {
  display: grid;
  gap: 13px;
}

.security-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.77rem;
  line-height: 1.5;
}

/* Application layout */
.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.22), transparent 28%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 6px 30px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 0.97rem;
  letter-spacing: -0.015em;
}

.sidebar-brand span {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.75rem;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: #aeb9ca;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.34), rgba(79, 70, 229, 0.2));
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.18);
}

.nav-item.active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: #818cf8;
  content: "";
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.current-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.current-user > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.22);
  font-weight: 800;
}

.current-user strong,
.current-user small {
  display: block;
}

.current-user strong {
  font-size: 0.88rem;
}

.current-user small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 0.75rem;
}

.logout-button {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.logout-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.main-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  padding: 18px 34px;
  border-bottom: 1px solid rgba(229, 234, 242, 0.86);
  background: rgba(248, 250, 252, 0.83);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.topbar .eyebrow {
  margin-bottom: 4px;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 1.15rem;
}

.content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 30px 34px 50px;
}

.view {
  display: none;
  animation: view-in 180ms ease;
}

.active-view {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.button,
.delete-task-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button {
  padding: 10px 16px;
  font-size: 0.87rem;
}

.button:hover:not(:disabled),
.delete-task-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.3);
}

.button-secondary {
  color: var(--primary);
  border: 1px solid #c7d2fe;
  background: #f5f7ff;
}

.button-ghost {
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.button-ghost:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.button-icon {
  font-size: 1rem;
  line-height: 1;
}

.full-width {
  width: 100%;
}

/* Core cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card,
.panel {
  background: var(--surface-elevated);
  border: 1px solid rgba(229, 234, 242, 0.9);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  position: relative;
  min-height: 164px;
  padding: 21px;
  overflow: hidden;
  border-radius: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-card::after {
  position: absolute;
  right: -30px;
  bottom: -52px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.045;
  content: "";
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-head > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-card > strong {
  display: block;
  margin: 17px 0 7px;
  color: var(--text);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-card > small {
  color: var(--muted);
  font-size: 0.76rem;
}

.metric-blue { color: #4f46e5; }
.metric-blue .metric-icon { color: #4338ca; background: #eef2ff; }
.metric-red { color: #dc2626; }
.metric-red .metric-icon { color: #b91c1c; background: #fef2f2; }
.metric-amber { color: #d97706; }
.metric-amber .metric-icon { color: #b45309; background: #fffbeb; }
.metric-green { color: #059669; }
.metric-green .metric-icon { color: #047857; background: #ecfdf5; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 26px;
  border-radius: 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading h2,
.panel-heading p {
  margin: 0;
}

.panel-heading h2 {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.panel-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-list {
  display: grid;
  gap: 22px;
}

.progress-row {
  display: grid;
  gap: 10px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
}

.progress-meta span {
  color: var(--muted);
  font-weight: 700;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.22);
}

.recent-list {
  display: grid;
  gap: 10px;
}

.recent-item {
  position: relative;
  padding: 14px 15px 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.recent-item::before {
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #818cf8;
  content: "";
}

.recent-item:hover {
  transform: translateX(2px);
  border-color: #d8def0;
  background: #fff;
}

.recent-item strong,
.recent-item span {
  display: block;
}

.recent-item strong {
  font-size: 0.87rem;
}

.recent-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.empty-state,
.loading-box {
  color: var(--muted);
}

/* Forms */
.general-grid,
.task-grid,
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.general-grid,
.portal-toolbar,
.management-form {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #f9fbfd;
}

.general-grid {
  margin-bottom: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-span-2 {
  grid-column: span 2;
}

label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-size: 0.87rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c5cfdd;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.11);
}

textarea {
  resize: vertical;
}

.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.error-message {
  min-height: 15px;
  color: var(--danger);
  font-size: 0.72rem;
}

.task-counter {
  padding: 8px 12px;
  border: 1px solid #dbe1ff;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.79rem;
  white-space: nowrap;
}

.task-card {
  position: relative;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.task-card:hover {
  border-color: #d8def0;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eef1f5;
}

.task-label {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.delete-task-button {
  min-height: 35px;
  padding: 7px 11px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 0.76rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.status-message {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.84rem;
}

.status-message.success,
.status-message.error,
.status-message.info {
  display: block;
}

.status-message.success {
  color: #047857;
  border-color: #a7f3d0;
  background: var(--success-soft);
}

.status-message.error {
  color: #b91c1c;
  border-color: #fecaca;
  background: var(--danger-soft);
}

.status-message.info {
  color: #a16207;
  border-color: #fde68a;
  background: var(--warning-soft);
}

.spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Projects and employees */
.management-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 11px;
  margin-bottom: 20px;
}

.data-list {
  display: grid;
  gap: 9px;
}

.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.data-row:hover {
  transform: translateY(-1px);
  border-color: #d5dcea;
  box-shadow: var(--shadow-sm);
}

.data-row strong,
.data-row small {
  display: block;
}

.data-row strong {
  font-size: 0.86rem;
}

.data-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.loading-box {
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 13px;
  background: #f8fafc;
  text-align: center;
  font-size: 0.83rem;
}

/* Employee portal */
.portal-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.employee-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-chip {
  position: relative;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.summary-chip::after {
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #6366f1;
  opacity: 0.05;
  content: "";
}

.summary-chip span,
.summary-chip strong {
  display: block;
}

.summary-chip span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.summary-chip strong {
  margin-top: 6px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.employee-task-list {
  display: grid;
  gap: 13px;
}

.employee-task-card {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.employee-task-card:hover {
  transform: translateY(-2px);
  border-color: #d6ddec;
  box-shadow: var(--shadow-md);
}

.employee-task-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.employee-task-card h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
}

.meta-pill {
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 0.7rem;
  font-weight: 700;
}

.task-description-text {
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.employee-task-card p {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.progress-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.progress-inline strong {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.portal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.status-badge {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-not-started {
  color: #475569;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.status-in-progress {
  color: #4338ca;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.status-waiting {
  color: #a16207;
  border-color: #fde68a;
  background: #fffbeb;
}

.status-completed {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(7px);
}

.modal-card {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #64748b;
  background: #f8fafc;
  cursor: pointer;
  font-size: 1.3rem;
}

/* Mobile */
@media (max-width: 1080px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .management-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 60;
    left: -292px;
    width: 270px;
    transition: left 200ms ease;
    box-shadow: 24px 0 60px rgba(2, 6, 23, 0.25);
  }

  .sidebar.open {
    left: 0;
  }

  .menu-button {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
  }

  .topbar {
    min-height: 74px;
    padding: 14px 18px;
  }

  .topbar-actions {
    display: none;
  }

  .content {
    padding: 20px 16px 38px;
  }

  .metrics-grid,
  .general-grid,
  .task-grid,
  .portal-toolbar,
  .employee-summary,
  .management-form,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .panel {
    padding: 19px;
    border-radius: 16px;
  }

  .panel-heading,
  .form-actions,
  .employee-task-top {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .metric-card {
    min-height: 142px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .metrics-grid {
    gap: 12px;
  }

  .metric-card {
    padding: 18px;
  }

  .task-card,
  .employee-task-card {
    padding: 16px;
  }

  .modal-card {
    padding: 21px 17px;
  }
}
