*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
#root, #__next {
  isolation: isolate;
}

html, body {
  height: 100%;
}

:root {
    --background: #F3F4F6;
    --sidebar: #1F2937;
    --card: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --borders-lines: #E5E7EB;
    --primary-accent: #3B82F6;
    --secondary-accent: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --succes: #22C55E;
}

:root {
  --font-base: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Sizes */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-md: 1rem;      /* 16px (body) */
  --fs-lg: 1.25rem;   /* 20px (section headers) */
  --fs-xl: 1.5rem;    /* 24px (page titles) */
  --fs-xxl: 2rem;     /* 32px (main dashboard title) */

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}


body {
  font-family: var(--font-base);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-xxl);
  font-weight: var(--fw-bold);
}



.container {
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-template-rows: 1fr 5fr;
    height: 100%;
}

.header {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background-color: var(--card);
  color: var(--text-primary);
  display: grid;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10;
}

.sidebar {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background-color: var(--sidebar);
  color: var(--background);
  display: grid;
  grid-template-rows: 1fr auto;
}

.board {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  background-color: var(--background);
}


.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
}

.sidebar-top,
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: var(--fs-xxl);
  font-weight: var(--fw-semibold);
  padding: 1rem 2.5rem;
}


.board-main {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
  padding: 0 16px;
}

.card {
  background-color: var(--card);
  border-radius: 10px;
  border-left: 10px solid var(--primary-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 1em;
  transition: transform 0.3s ease;
  max-height: 450px;
  position: relative;
}

.screenshot {
  max-height: 80%;
  border-radius: 6px;
}

.card:hover {
  transform: scale(1.03);
}

.card h1 {
  font-size: var(--fs-lg);
  margin-bottom: 0.5em;
}

.board-header {
  background-color: var(--background);
  grid-area: 1 / 1 / 2 / 2;
  padding-left: 16px;
  font-size: var(--fs-xl);
  margin-top: 0.5em;
}

.board-side {
  grid-column: 2 / 3;
  grid-row: 2 / 5;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px;
  max-height: 600px;
}

.board-footer {
  grid-column: 1 / 3;
  grid-row: 5 / 6;
  background-color: var(--background);
}

.board-side-header {
  grid-area: 1 / 2 / 2 / 3;
  padding-left: 16px;
  font-size: var(--fs-xl);
  margin-top: 0.5em;
}

.side-card {
  background-color: var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  gap: 8px;
  max-height: fit-content;
  padding: 24px;
}

.side-card-content {
  overflow:hidden;
  padding-bottom: 16px;
}

.second-side-card {
  display: flex;
  flex-direction: column;
}

.card2 {
  height: 100%;
  width: 100%;
  background-color: var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  max-height: fit-content;
}


.second-side-card > p {
  font-size: var(--fs-xl);
  margin-top: 0.25em;
}

.sidebar svg {
  width: 1em;
}

.sidebar svg path {
  fill: var(--background); 
}

.logo {
  display: flex;
  gap: 8px;
  font-size: 2.75rem;
  margin-bottom: 0.75em;
}

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

.sidebar-link {
  display: flex;
  gap: 24px;
  transition: all 0.4s ease-in-out;
}

.sidebar-link:hover {
  transform: scale(1.15);
}

.header-top input[type='text']
 {
  background-color: var(--background);
  border: 2px solid var(--primary-accent);
  border-radius: 20px;
  width: 50em;
  padding: 8px;
  font-size: var(--fs-sm);
}

.search {
  display: flex;
}


.search form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search svg, .header svg {
  width: 2em;
}

.search svg path, .header svg path {
  fill: var(--text-primary); 
}

.user-img {
  width: 140px;
}

.user {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
  margin-right: 24px;
}

.user svg:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.user p {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.user-greeting p:last-child {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.user-greeting {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.button-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 56px;
  margin-right: 24px;
}

.button-group button {
  align-items: center;
  background-color: var(--primary-accent);
  color: var(--card);
  border-radius: 100px;
  padding: 0px;
  border: 0;
  cursor: pointer;
  justify-content: center;
  min-height: 40px;
  min-width: 100px;
  overflow: hidden;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  touch-action: manipulation;
  
}


.button-group button:hover { 
  transform: scale(1.1);
  
}

.button-group button:active {
  background: var(--sidebar);
  color: var(--card);
}



.divider {
border-bottom: 1px solid var(--primary-accent);
}

.card2-content svg {
  width: 3em;
}

.first {
  grid-row: 1 / 2;
}

.second {
  grid-row: 2 / 3;
}

.third {
  grid-row: 3 / 4;
}

.fourth {
  grid-row: 4 / 5;
}

.card2-content  {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 24px
}

.icons {
  display: flex;
  position: absolute;
  bottom: 12px;
  right: 12px;
  gap: 8px;
}

.icons svg {
  width: 2em;
}

.icons svg:hover {
  transform: scale(1.15);
}