/* ================== Pixels App Main Stylesheet ================== */
:root {
  /* Typography */
  --font-family: "Albert Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-size: 14px;
  --font-weight-normal: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 800;

  /* Palette */
  --text-color: #252B2A;
  --dark-color: #1C1B1F;
  --dark-color-secondary: #333333;
  --light-color: #EAEAEA;
  --white-color: #ffffff;
  --active-tag: #1E90FFB2;

  /* Cells */
  --cell-color-green: #BEE97E4D;
  --cell-color-blue:  #7EB8E94D;
  --cell-color-red:   #FF7BAC4D;
  --cell-border-color: #EAEAEA;

  /* Buttons */
  --button-default-hover: #252525;
  --button-default-disabled: #9E9E9E;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}
/*---------------------Toggler menu bar styles-----*/
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height:622px;
    width: 45px;
    background:url('../img/sidebar-bg.svg') center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.hidden {
    transform: translateX(-70px);
}

.menu-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 60px 0 20px 0; /* Top padding for hamburger space */
}

.top-icons {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.bottom-icons {
    display: flex;
    flex-direction: column;
}
.menu-item:hover {
    opacity: 0.7;
}

.menu-item svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.menu-spacer {
    flex-grow: 1;
}

.bottom-item {
    margin-bottom: 30px;
}

.dimensions {
    position: fixed;
    left: 10px;
    bottom: 10px;
    background-color: #7c3aed;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1002;
}

/* Content area */
.content {
    margin-left: 100px;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

.content.expanded {
    margin-left: 40px;
}

/* ----------------------------- Header ----------------------------- */
#header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  z-index: 20000;
  background: transparent;
}

.logo-holder {
  width: 217px;
  display: flex;
  align-items: center;
}

#logo {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px;
  width: 154px;
  height: 46px;
  margin: 0 0 0 6px;
  background: var(--white-color);
  border: 1px solid var(--light-color);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
  border-radius: 50px;
}

.menu-toggle,
.donations-bag {
  width: 45px;
  height: 78px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: cover;
}
.menu-toggle{
  position: relative;
  border:0;
  z-index: 1000;
  background: none;
}
.menu-toggle {
  width: 48px;
  height: 75px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  transition: all 0.3s ease;
}

.menu-toggle.sidebar-visible {
   background:transparent url('../img/menu-toggle-bg.svg') center center no-repeat;
}
 .menu-toggle span {
    width: 15px;
    height: 2px;
    margin:1.5px 0;
    background-color:var(--white-color);
    display: block;
    transition: background-color 0.3s ease;
}

.menu-toggle.sidebar-visible span {
    background: var(--dark-color);
}
.pixels-container{
  position: relative;
}
.donations-bag {
  position: fixed;
  right: 0;
  top: 15%;
  background-image: url('../img/menu-toggle-bg-right.svg');
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 10000;
}

.menu-toggle img {
  transition: transform 0.4s ease;
}

.menu-toggle:hover img {
  transform: rotate(180deg);
}

/* Search */
.search-holder {
  margin: 0 0 0 215px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 6px 0;
  gap: 16px;
  width: 574.16px;
  height: 46px;
  background: var(--white-color);
  border: 1px solid var(--light-color);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  border-radius: 33px;
}

.search-holder .form-control {
  padding: 6px 24px 6px 58px;
  border: none;
  background: url('../img/search-icon.png') 24px center no-repeat;
  transition: background-position 0.3s ease;
}

.search-holder .form-control:focus {
  outline: none;
  box-shadow: none;
  background: url('../img/search-icon.png') 20px center no-repeat;
}

/* Options bar */
.options-bar {
  width: 464px;
  display: flex;
  float: right;
}

.options-bar ul,
.options-bar ul li {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.options-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.options-bar ul li {
  margin: 0 32px 0 0;
}

.options-bar ul li:last-child {
  margin: 0;
}

.options-bar ul li a {
  overflow: hidden;
  text-indent: -9999px;
  background-size: cover;
  display: inline-block;
}

.notifications a {
  width: 24px;
  height: 25px;
  background: url('../img/bell-icon.png') center center no-repeat;
}

.chat a {
  width: 34px;
  height: 27px;
  background: url('../img/chat-icon.png') center center no-repeat;
}

.cell-view a {
  width: 25px;
  height: 29px;
  background: url('../img/hexagon-icon.png') center center no-repeat;
}

.avatar a {
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: var(--white-color) url('../img/cupcake.png') center center no-repeat;
  background-size: 34px 42px !important;
  box-shadow: 0 2px 4px 1.5px rgba(0, 0, 0, 0.15), 0 0.5px 1.5px rgba(0, 0, 0, 0.3);
}

/* ----------------------------- Buttons ---------------------------- */
.btn-default,
.btn-default-outlined {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 129.8px;
  height: 46px;
  padding: 15px;
  font-size: var(--font-size);
  border-radius: 50px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-default {
  background: var(--dark-color-secondary);
  border: none;
  color: var(--light-color);
  font-weight: var(--font-weight-medium);
}

.btn-default:hover {
  background: var(--button-default-hover);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
}

.btn-default:disabled {
  background: var(--button-default-disabled);
}

.btn-default-outlined {
  background: none;
  border: 1px solid var(--dark-color);
  color: var(--dark-color);
  font-weight: var(--font-weight-normal);
}

.btn-default-outlined:hover {
  border-width: 2px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
  font-weight: var(--font-weight-medium);
}

.btn-default-outlined:disabled {
  border-color: var(--button-default-disabled);
  color: var(--button-default-disabled);
}

.btn-default.btn-large,
.btn-default-outlined.btn-large {
  width: 165px;
}
.btn-text-only{
  background: none;
  border:none;
  font-weight: var(--font-weight-bold);
  color: var(--button-default-disabled);
}
/* ----------------------------- Footer ----------------------------- */
#footer {
  position: fixed;
  left: 0;
  bottom: 20px;
  padding: 0 27px;
  width: 100%;
  z-index: 200;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-inner > .zoom-options {
  margin-right: auto;
}

.footer-inner > .category-toggle {
  margin: 0 auto;
}

.footer-inner > :last-child {
  margin-left: auto;
}

/* Zoom options */
.zoom-options {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 11px 9px;
  width: 168px;
  height: 47px;
  background: var(--white-color);
  border: 1px solid var(--light-color);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
  border-radius: 50px;
}

.zoom-options ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zoom-options li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-options li:first-child {
  border-right: 1px solid var(--light-color);
  padding-right: 8px;
}

.zoom-options li:last-child {
  border-left: 1px solid var(--light-color);
  padding-left: 8px;
}

.zoom-options li:first-child span,
.zoom-options li:last-child span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.zoom-options li:first-child span:hover,
.zoom-options li:last-child span:hover {
  opacity: 0.7;
}

.zoom-options li:first-child span img,
.zoom-options li:last-child span img {
  object-fit: cover;
  pointer-events: none;
}

.zoom-percentage {
  flex: 1;
  text-align: center;
}

.zoom-percentage span {
  display: block;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  user-select: none;
}

/* Category toggle - Using your original CSS */
    .category-toggle {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 11px 9px;
      width: 329px;
      height: 47px;
      background: var(--white-color);
      border: 1px solid var(--light-color);
      box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
      border-radius: 50px;
    }

    .category-toggle ul {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .category-toggle li {
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .category-toggle li:first-child span,
    .category-toggle li:last-child span {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s ease;
      opacity: 0.6;
    }

    .category-toggle li:first-child span:hover,
    .category-toggle li:last-child span:hover {
      transform: scale(1.1);
      opacity: 1;
    }

    .category-toggle li:first-child span:active,
    .category-toggle li:last-child span:active {
      transform: scale(0.95);
    }

    .category-toggle li:first-child span img,
    .category-toggle li:last-child span img {
      object-fit: cover;
    }

    .category-toggle .zoom-percentage {
      flex: 1;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }

    .category-toggle .zoom-percentage span {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 14px;
      font-weight: var(--font-weight-medium);
    }

    .category-toggle .zoom-percentage img {
      width: 20px;
      height: 20px;
      object-fit: contain;
    }

    /* Carousel animations */
    .carousel-container {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

    .carousel-content {
      white-space: nowrap;
      transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .carousel-content.slide-out-left {
      animation: slideOutLeft 0.3s ease-in-out forwards;
    }

    .carousel-content.slide-out-right {
      animation: slideOutRight 0.3s ease-in-out forwards;
    }

    .carousel-content.slide-in-left {
      animation: slideInLeft 0.3s ease-in-out forwards;
    }

    .carousel-content.slide-in-right {
      animation: slideInRight 0.3s ease-in-out forwards;
    }

    @keyframes slideOutLeft {
      0% {
        transform: translateX(0);
        opacity: 1;
      }
      100% {
        transform: translateX(-100%);
        opacity: 0;
      }
    }

    @keyframes slideOutRight {
      0% {
        transform: translateX(0);
        opacity: 1;
      }
      100% {
        transform: translateX(100%);
        opacity: 0;
      }
    }

    @keyframes slideInLeft {
      0% {
        transform: translateX(-100%);
        opacity: 0;
      }
      100% {
        transform: translateX(0);
        opacity: 1;
      }
    }

    @keyframes slideInRight {
      0% {
        transform: translateX(100%);
        opacity: 0;
      }
      100% {
        transform: translateX(0);
        opacity: 1;
      }
    }

    .carousel-content img {
      width: 20px;
      height: 20px;
      object-fit: contain;
    }
/* Help button */
.help-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--white-color);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
}

/* Utility classes */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ----------------------------- Landing Page ---------------------------- */
.landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
  margin-bottom: 60px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 20px;
  color: var(--dark-color);
}

.hero-section p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 30px;
}

.stats-section {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 36px;
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  margin-bottom: 8px;
}

.stat p {
  font-size: 14px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}
/*-----Cell Hover card---*/
.hover-card {
    position: fixed;
    width: 420px;
    background: white;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
  }

  .hover-card.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
  }

  /* Card Header */
  .card-header {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
  }

  .icon-placeholder {
    width: 60px;
    height: 60px;
    background: #ffffff;
    box-shadow: 0px 1px 2px 0.75px rgba(0, 0, 0, 0.15), 0px 0.25px 0.75px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
  }

  .card-content {
    flex: 1;
  }

  .card-text {
    font-size: 18px;
    line-height: 1.5;
    color:var(--dark-color);
    margin-bottom: 8px;
  }

  .card-date {
    font-size: 12px;
    color: #999;
  }

  /* Card Footer */
  .card-footer {
    padding:10px 20px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hashtag-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cell-color-red);
    padding: 3px 10px;
    border-radius: 50px;
  }

  .hashtag {
    font-size: 18px;
    font-weight: 600;
    color:var(--dark-color);
  }

  .coordinates {
    font-size: 11px;
    color: #666;
    font-family: monospace;
  }

  /*-----Report card ----*/
.report-card {
  width: 678px;
  height: auto;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 10000;
  position: relative;
}

.report-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.report-card .subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.report-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  max-width: 70%;
}

.report-options .option {
  border: 1px solid var(--light-color);
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  width: 170px;
  font-size: var(--font-size);
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-options .option:hover {
  border-color: #111;
}

.report-options .option.active {
  border: 1.8px solid #111;
  font-weight: 500;
}

textarea {
  width: 100%;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  resize: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 22px;
}

textarea::placeholder {
  color: #aaa;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.report-actions .report:hover {
  background: #000;
}
/*------ Donations Reveal Card ----*/
.grant-card {
  width: 520px;
  background: white;
  border: 1px solid var(--light-color);
  border-radius: 12px;
  padding: 16px 20px 20px 20px;
  position: absolute;
  z-index: 9999;
  right:-1080px;
  top:0;
}
.grant-card.active {
  right: 0;
}
/* Header Section */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  font-size: 24px;
  line-height: 1;
  user-select: none;
}

.header-title {
  font-size:14px;
  line-height: 1.2;
}

.title-main {
  font-weight: 600;
  color: var(--dark-color);
}

.title-sub {
  font-weight: 400;
  color: var(--button-default-disabled);
  margin-left: 4px;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  color: #000;
}

/* Icon Section */
.icon-container {
  width: 44px;
  height: 24px;
  background: #2d2d2d;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Stats Section */
.stats-section {
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-number {
  font-size: 22px;
  font-weight:var(--font-weight-bold);
  color: var(--dark-color);
}

.stat-label {
  font-size: 17px;
  font-weight: 400;
  color: #000;
}

/* Progress Section */
.progress-section {
  padding-top: 20px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-title {
  font-size: 17px;
  line-height: 1.2;
}

.progress-main {
  font-weight: 600;
  color: #000;
}

.progress-sub {
  font-weight: 400;
  color: #999;
  margin-left: 4px;
}

.progress-amount {
  font-size: 17px;
  font-weight: 600;
  color: #000;
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, 
    #ffb8b8 0%, 
    #ffb8b8 30%,
    #ffd0d0 30%,
    #ffd0d0 50%,
    #c2dbff 50%,
    #c2dbff 100%
  );
  border-radius: 5px;
  width: 20%;
}