/* ========================
   Global & Root Variables
======================== */
* {
    box-sizing: border-box; /* Ensures padding and border are included in total element size */
  }
  
  :root {
    --primary-color: #ffffff;
    --secondary-color: #f4f7fd;
    --primary-font-color: #000000;
    --secondary-font-color: #828fa3;
    --primary-box-shadow: 0px 4px 6px rgba(54, 78, 126, 0.1015); /* Subtle shadow for card depth */
    --sidebar-width: 300px; /* Sidebar fixed width */
  }
  
  /* ================
     Base Elements
  ================ */
  body {
    font-family: "Plus Jakarta Sans", sans-serif;
    display: flex; /* Allow layout to span horizontally */
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background-color: var(--secondary-color);
    font-size: 1rem; /* Base font size for rem scaling */
  }
  
  /* ================
     Sidebar Layout
  ================ */
  .side-bar {
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    border-right: 1px solid #e4ebfa; /* Light divider */
    width: var(--sidebar-width);
    height: 100vh;
  }
  
  #side-logo-div {
    margin: 33px 113px 54px 34px; /* Spacing around logo */
    display: flex;
    justify-content: flex-start;
  }
  
  #logo {
    width: 100%; /* Make logo responsive within container */
  }
  
  .boards-nav-links-div {
    display: flex;
    flex-direction: column;
    color: var(--primary-font-color);
  }
  
  #headline-sidepanel {
    padding: 0 12px 0 50px; /* Aligns section content from left and right */
  }
  
  h4 {
    color: var(--secondary-font-color);
    font-size: 0.75rem;
    letter-spacing: 0.125rem; /* Makes heading more spaced */
  }
  
  .board-btn {
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    background-color: #635fc7;
    color: #fff;
    border: none;
    border-radius: 0 100px 100px 0; /* Pill shape only on right side */
    height: 48px;
    width: 276px;
    padding: 28px 12px 28px 50px;
    font-size: 0.9375rem;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden; /* Prevents overflowed text/icons from showing */
  }
  #sidebar-controls {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }
  
  #theme-toggle,
  #hide-sidebar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: transparent;
    border: none;
    color: var(--secondary-font-color);
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  #theme-toggle:hover,
  #hide-sidebar:hover {
    color: var(--primary-font-color); /* Darker color on hover */
  }
  
  #theme-toggle-icon,
  #hide-sidebar-icon {
    width: 20px;
    height: 20px;
  }
  /* ===============
     Main Layout
  ================ */
  #layout {
    flex: 1; /* Fills remaining space beside sidebar */
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
  }
  
  /* ===============
     Header Section
  ================ */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: var(--primary-font-color);
    height: 96px;
    padding: 0 35px 0 30px;
    border-bottom: 1px solid #e4ebfa;
    width: 100%;
    font-size: 1.875rem;
    font-weight: 600;
  }
  /* ================
   Add New Task Button
================ */
#add-task-btn {
  background-color: #635fc7; /* Primary button color */
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: var(--primary-box-shadow);
}

#add-task-btn:hover {
  background-color: #8471f2; /* Slightly lighter shade */
}

  .header-name-div {
    display: flex;
    align-items: center;
  }
  
  .logo-mobile {
    display: none; /* Hidden on desktop; shown on smaller screens */
  }
  
  /* ===============
     Board Columns
  ================ */
  .container {
    display: flex;
    flex-direction: column;
    padding-left: 35px;
    box-sizing: border-box;
  }
  
  .card-column-main {
    display: grid;
    grid-template-columns: repeat(
      3,
      minmax(0, 304px)
    ); /* 3 columns with min size */
    gap: 8px; /* Space between columns */
  }
  
  .column-div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 12px;
  }
  
  .column-head-div {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between dot and column title */
  }
  
  .columnHeader {
    font-size: 0.75rem;
    letter-spacing: 0.125rem;
    color: var(--secondary-font-color);
    margin: 0;
  }
  
  /* Status Dots */
  .dot {
    height: 15px;
    width: 15px;
    border-radius: 50%; /* Make it circular */
    display: inline-block;
  }
  
  #todo-dot {
    background-color: #49c4e5;
  }
  
  #doing-dot {
    background-color: #8471f2;
  }
  
  #done-dot {
    background-color: #219c90;
  }
  
  /* ===============
     Task Cards
  ================ */
  .tasks-container {
    display: flex;
    flex-direction: column;
  }
  
  .task-div {
    display: flex;
    align-items: center;
    padding-left: 15px;
    width: 100%;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--primary-font-color);
    border-radius: 12px;
    box-shadow: var(--primary-box-shadow);
    cursor: pointer; /* Indicate it's clickable */
    margin-bottom: 20px;
    font-size: 0.9375rem;
    font-weight: bold;
  }
  
  /* ===============
     Headings
  ================ */
  h2 {
    font-size: 1.5rem;
    margin: 0;
  }
  
  /* ========================
     Responsive Styles
  ======================== */
  
  /******** Tablets ********/
  @media screen and (max-width: 1023px) {
    .side-bar {
      display: none; /* Hide sidebar on tablets and smaller */
    }
  
    .side-bar.show-sidebar {
      display: flex !important;
      position: fixed; /* Overlay on top of page */
      height: auto;
    }
  
    #side-logo-div {
      display: none;
    }
  
    .logo-mobile {
      display: block;
      width: 30px;
      height: 30px;
      margin-right: 10px;
    }
  
    body {
      font-size: 0.8rem;
    }
  
    .board-btn {
      font-size: 0.8rem;
      padding-left: 15px;
      margin-right: 15px;
      font-weight: 700;
    }
  
    .container {
      padding: 0;
      width: 100%;
      align-items: center; /* Center columns on smaller screens */
    }
  
    .card-column-main {
      grid-template-columns: repeat(2, minmax(0, 360px));
      gap: 8px;
    }
  
    header {
      height: 64px;
      padding: 0 10px 0 18px;
      border: none;
    }
  
    #header-board-name {
      font-size: 1rem;
    }
  
    .task-div {
      width: 100%;
    }
  
    .columnHeader {
      font-size: 0.75rem;
    }
  
    .dot {
      height: 8px;
      width: 8px;
    }
  
    .column-head-div {
      gap: 8px;
    }
  
    .column-div {
      width: 100%;
    }
  }
  
  /******** Mobile ********/
  @media screen and (max-width: 576px) {
    .card-column-main {
      grid-template-columns: minmax(
        0,
        380px
      ); /* Stack columns in single column */
    }
  
    .column-div {
      padding: 24px;
    }
  }
 /* ========================
   Modal & Backdrop Styles
======================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Dimmed background */
    backdrop-filter: blur(4px); /* Glassy blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .close-btn {
    font-size: 2rem;
    font-weight: bold;
    color: #EA5555;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.3s ease;
  }
  
  .close-btn:hover {
    color: #000;
  }
  
  .modal.classList {
    display: none;
  }
  
  .modal-content {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--primary-box-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .modal-content input,
  .modal-content textarea,
  .modal-content select {
    font-family: inherit;
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    resize: vertical;
  }
  
  .modal-content label {
    font-weight: bold;
    color: var(--secondary-font-color);
    margin-bottom: 4px;
  }
  
  .modal-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .save-btn {
    background-color: #635fc7;
    color: white;
    border: none;
    width: 200px;
    height: 40px;
    left: 764px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .delete-btn {
    background-color: #EA5555;
    color: white;
    border: none;
    width: 200px;
    height: 40px;
    left: 764px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
  }

  .hidden {
    display: none !important;
  }
  

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .emoji {
    font-size: 20px;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #635fc7;
    border-radius: 34px;
    transition: 0.4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }
  
  input:checked + .slider:before {
    transform: translateX(20px);
  }
  
  /* ============
     Hide Sidebar Button
  ============ */
  .hide-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* centers content inside the button */
    gap: 0.5rem;
    background-color: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #635fc7;
    cursor: pointer;
    margin: 0 auto; /* horizontally center button itself */
  }
  
  
  
  
  