:root {
  --bg-page: #f8fafc;          /* very light gray */
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-soft: rgba(255,255,255,0.65);

  --text-primary: #0f172a;     /* slate-900 */
  --text-secondary: #475569;   /* slate-600 */

  --brand-primary: #43b0b3;    /* ocean teal */
  --brand-accent: #7589d5;     /* soft sky */
  --brand-3: #ff914d;    /* ocean teal */
  --brand-4: #ff5757;     /* soft sky */
  --brand-gray: #ccccc9;     /* soft sky */
  --brand-warm: #f4b183;       /* sand / sunset */
  --dark: #1a1410;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    /*display: flex;
    height: 100vh;*/
    background: 
      linear-gradient(
        rgba(255,255,255,0.7),
        rgba(255,255,255,0.7)
      ),
      url("/images/maplines-backdrop-color.png") bottom right / cover no-repeat fixed;
    color: #333;
  }

  /* ===================== Sidebar ===================== */
  #sidebar {
    width: 280px;
    max-height: 100vh;
    background: #1e293b;
    color: white;
    /*overflow-y: auto;*/
    padding: 1rem;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(0);
    /*max-height: 100vh;*/
    display: flex;
    flex-direction: column;
  }

.sidebar-top,
.sidebar-bottom {
  flex-shrink: 0; /* fixed size */
  padding: 1rem;
}

.sidebar-middle {
  flex: 1; /* takes remaining space */
  overflow-y: auto; /* scrollable */
  padding: 0 1rem 1rem 1rem;
}

/* optional: spacing for buttons */
.sidebar-top button,
.sidebar-middle button,
.sidebar-bottom button {
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  background: #43b0b3;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.sidebar-top button:hover,
.sidebar-middle button:hover,
.sidebar-bottom button:hover {
  background: #475569;
}

.sidebar-logout {
  margin-top: 10px !important;
  background: #c0392b !important;
  color: white !important;
}

  #sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  #sidebar.hidden {
    transform: translateX(-100%);
  }

  /* Hamburger button for desktop */
  #menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    background: #1e293b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: transform 0.3s ease;
  }

  #menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
  }

  /* Mobile arrow button */
  #mobile-arrow {
    position: fixed;
    top: 1rem;
    left: 0;
    width: 28px;
    height: 40px;
    background: #1e293b;
    color: rgb(244, 245, 244);
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: left 0.3s ease, transform 0.3s ease;
  }

  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  #overlay.active {
    display: block;
    opacity: 1;
  }

  #main {
    flex: 1;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
  }

  .maindiv {
    flex: 1;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; 
    width: 80%;
  }

  #sidebar.hidden ~ #main {
    margin-left: 0;
  }

  /* Mobile Styles */
  @media (max-width: 768px) {
    #sidebar {
      transform: translateX(-100%);
    }

    #sidebar.active {
      transform: translateX(0);
    }

    #main {
      margin-left: 0;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    #menu-toggle {
      display: none;
    }

    #mobile-arrow {
      display: flex;
    }

    #sidebar.active + #mobile-arrow {
      left: 280px;
      transform: rotate(180deg);
    }
  }
 /* ===================== end Sidebar ===================== */

 
/* ================== Banner ================== */
.screen-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2000;
}

.screen-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.screen-banner.success { background: #43b0b3; }
.screen-banner.error { background: #ff5757; }
/* ================== End Banner ================== */

.loading-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 8px;
}

.styled-button {
    padding: 0.8rem 1.6rem;
    background: #43b0b3;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.styled-button:hover {
    background: #475569;
    transform: translateY(-2px);
}

.styled-button:active {
    transform: translateY(0);
}


/*=========== footer ===========*/
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

/* Brand Section */
.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: rgba(67, 176, 179, 0.2);
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* New class for contact icons */
.contact-icon-img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* Section Headings */
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-primary);
  transform: translateX(4px);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Contact Info */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.contact-icon {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.footer-contact a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--brand-primary);
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: #808080;
}

.footer-credit {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

:root {
  --bg-page: #f8fafc;          /* very light gray */
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-soft: rgba(255,255,255,0.65);

  --text-primary: #0f172a;     /* slate-900 */
  --text-secondary: #475569;   /* slate-600 */

  --brand-primary: #43b0b3;    /* ocean teal */
  --brand-accent: #7589d5;     /* soft sky */
  --brand-3: #ff914d;    /* ocean teal */
  --brand-4: #ff5757;     /* soft sky */
  --brand-gray: #ccccc9;     /* soft sky */
  --brand-warm: #f4b183;       /* sand / sunset */
  --dark: #1a1410;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    /*display: flex;
    height: 100vh;*/
    background: 
      linear-gradient(
        rgba(255,255,255,0.7),
        rgba(255,255,255,0.7)
      ),
      url("/images/maplines-backdrop-color.png") bottom right / cover no-repeat fixed;
    color: #333;
  }

  /* ===================== Sidebar ===================== */
  #sidebar {
    width: 280px;
    max-height: 100vh;
    background: #1e293b;
    color: white;
    /*overflow-y: auto;*/
    padding: 1rem;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(0);
    /*max-height: 100vh;*/
    display: flex;
    flex-direction: column;
  }

.sidebar-top,
.sidebar-bottom {
  flex-shrink: 0; /* fixed size */
  padding: 1rem;
}

.sidebar-middle {
  flex: 1; /* takes remaining space */
  overflow-y: auto; /* scrollable */
  padding: 0 1rem 1rem 1rem;
}

/* optional: spacing for buttons */
.sidebar-top button,
.sidebar-middle button,
.sidebar-bottom button {
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  background: #43b0b3;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.sidebar-top button:hover,
.sidebar-middle button:hover,
.sidebar-bottom button:hover {
  background: #475569;
}

.sidebar-logout {
  margin-top: 10px !important;
  background: #c0392b !important;
  color: white !important;
}

  #sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  #sidebar.hidden {
    transform: translateX(-100%);
  }

  /* Hamburger button for desktop */
  #menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    background: #1e293b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: transform 0.3s ease;
  }

  #menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
  }

  /* Mobile arrow button */
  #mobile-arrow {
    position: fixed;
    top: 1rem;
    left: 0;
    width: 28px;
    height: 40px;
    background: #1e293b;
    color: rgb(244, 245, 244);
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: left 0.3s ease, transform 0.3s ease;
  }

  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  #overlay.active {
    display: block;
    opacity: 1;
  }

  #main {
    flex: 1;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
  }

  .maindiv {
    flex: 1;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; 
    width: 80%;
  }

  #sidebar.hidden ~ #main {
    margin-left: 0;
  }

  /* Mobile Styles */
  @media (max-width: 768px) {
    #sidebar {
      transform: translateX(-100%);
    }

    #sidebar.active {
      transform: translateX(0);
    }

    #main {
      margin-left: 0;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    #menu-toggle {
      display: none;
    }

    #mobile-arrow {
      display: flex;
    }

    #sidebar.active + #mobile-arrow {
      left: 280px;
      transform: rotate(180deg);
    }
  }
 /* ===================== end Sidebar ===================== */

 
/* ================== Banner ================== */
.screen-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2000;
}

.screen-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.screen-banner.success { background: #43b0b3; }
.screen-banner.error { background: #ff5757; }
/* ================== End Banner ================== */

.loading-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 8px;
}

.styled-button {
    padding: 0.8rem 1.6rem;
    background: #43b0b3;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.styled-button:hover {
    background: #475569;
    transform: translateY(-2px);
}

.styled-button:active {
    transform: translateY(0);
}


/*=========== footer ===========*/
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

/* Brand Section */
.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: rgba(67, 176, 179, 0.2);
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* New class for contact icons */
.contact-icon-img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* Section Headings */
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-primary);
  transform: translateX(4px);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Contact Info */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.contact-icon {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.footer-contact a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--brand-primary);
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: #808080;
}

.footer-credit {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-container {
    padding: 2rem 1.5rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Center social icons on mobile */
  .footer-social {
    justify-content: center;
  }

  /* Center contact list on mobile */
  .footer-contact {
    align-items: center;
  }

  .footer-links a:hover {
    transform: none;
  }
}

/* Add this to your main styles.css file */

/* Sticky Footer Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1;
}