

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
}

/* Full-width helper (already in place) */
.hero-full {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Hero background override */
.hero-bg {
  background-color: #0d71e6 !important;
}

/* floor plan tool button */
#tool-sidebar .list-group-item.selected-tool,
#tool-sidebar .list-group-item.selected-tool:focus,
#tool-sidebar .list-group-item.selected-tool:hover {
  background-color: #007bff !important;
  color: #fff !important;
  border-color: #007bff !important;
  z-index: 1;
}

#door-context-menu,
#window-context-menu {
  display: none;
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid #e1e4ea;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(40, 80, 170, 0.08), 0 1.5px 4px rgba(0,0,0,0.07);
  min-width: 160px;
  font-size: 15px;
  padding: 0;
  transition: box-shadow 0.2s;
}

  #door-context-menu div,
  #window-context-menu div {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.14s;
    border-bottom: 1px solid #f1f1f1;
    background: transparent;
  }

    #door-context-menu div:last-child,
    #window-context-menu div:last-child {
      border-bottom: none;
    }

    #door-context-menu div:hover,
    #window-context-menu div:hover {
      background: #f5f8ff;
      color: #2365d9;
    }

/* --- ENHANCED DASHBOARD & SIDEBAR STYLES --- */

.dashboard-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(35, 101, 217, 0.07);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.sidebar {
  border-right: 1px solid #e3e8ee;
  min-height: 100vh;
  background: #f6f8fa;
  padding-right: 1.5rem !important;
  padding-left: 0.5rem !important;
  box-shadow: 2px 0 8px rgba(35, 101, 217, 0.03);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

  .sidebar strong {
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #2365d9;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.7rem;
    margin-top: 1.7rem;
    border-bottom: 1px solid #e3e8ee;
    padding-bottom: 0.2rem;
    background: none;
    padding-left: 12px;
  }

  .sidebar a {
    display: flex;
    align-items: center;
    color: #2365d9;
    padding: 7px 0 7px 28px;
    border-radius: 8px;
    margin-bottom: 2px;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    font-weight: 500;
    font-size: 1rem;
    gap: 8px; /* spacing for icons */
  }

    .sidebar a:hover, .sidebar a.active {
      background: #e5eeff;
      color: #114397;
      text-decoration: none;
    }

  .sidebar .btn,
  .sidebar form {
    width: 95%;
    margin-top: 1.7rem;
  }

  .sidebar .btn-outline-primary:hover,
  .sidebar .btn-outline-primary:focus {
    background: #2365d9;
    color: #fff;
    border-color: #2365d9;
  }

@media (max-width: 991.98px) {
  .sidebar {
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid #e3e8ee;
    padding: 1rem !important;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
  }
}
