body {
  background: #e5eefb;
}

#wrapper {
  position: relative;
  min-width: 290px;

  * {
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
}

/****************  Header  *******************/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2em 0 0;

  .header-wrap {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;

    .logo-area {
      display: flex;
      align-items: center;
      gap: 12px;

      .logo {
        width: 48px;
        height: 48px;
      }

      .header-title {
        font-size: 1.65rem;
        font-weight: bold;
        margin-bottom: 8px;
      }

      .header-subtitle {
        font-size: 0.9rem;
        font-weight: 500;
        color: #2d3a5a;
      }

    }

    .header-icons {
      display: flex;
      align-items: center;
      gap: 5px;
      height:48px;
    }

    .icon-btn {
      display:flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: none;
      border: none;
      padding:0;
    }

    .icon-btn i {
      font-size: 1.8rem;
    }
  }

  /* Header검색바 */
  .search-wrap {
    display: flex;
    width: 100%;
    align-items: stretch;

    input[type="text"] {
      flex-grow: 1;
      min-width: 0;
      border: 1px solid #868b91;
      border-radius: 15px 0 0 15px;
      font-size: 1.2rem;
      background: #fff;
      height: 3rem;
      padding: 0 1rem;
    }

    .search-btn {
      width: 55px;
      height: 3rem;
      border: none;
      background: #232732;
      color: #fff;
      border-radius: 0 15px 15px 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 1.4rem;
    }
  }

}


.main-banner {
  position:relative;
  width: 100%;
  background: #232a32;
  color: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  &::after {
    content: '';
    display: block;
    width: 10rem;
    height: 10rem;
    position: absolute;
    bottom: 0;
    right: 0;
    background: url('../assets/main_banner.png') no-repeat right -10px bottom/contain;
    margin-left: 24px;
  }

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

    * {
      color: #fff;
    }

    .banner-text {
      display: flex;
      flex-direction: column;
      gap: 1rem;

      h2 {
        font-size: 2rem;
        font-weight: bold;
      }

      p {
        font-size: 0.75rem;
      }
    }

    .banner-btn {
      margin-top: 1rem;
      padding: 1rem 1.5rem;
      background: #ff2d3d;
      border: none;
      border-radius: 1rem;
      font-weight: bold;
      cursor: pointer;
      font-size: 1.2rem;
      text-align: center;
    }
  }
}

.main-menu {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  .menu-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    .menu-card{
      height:100%;
    }
  }
  .menu-grid-left{
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .menu-grid-right{
    height:100%;
  }
  .menu-card {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .menu-card .menu-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e3050;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .menu-card .menu-card-title i {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .menu-card .menu-card-desc {
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #666;
  }

  .emergency-bg{
    position:relative;
    height:100%;
    &::after{
      content:'';
      display:block;
      position:absolute;
      bottom:-10%;
      right:0;
      z-index: 0;
      width:80%;
      height:80%;
      background: url('../assets/main_menu_1.png') no-repeat bottom right/contain;
    }
  }

  .menu-card-wide{
    position:relative;
    grid-column: span 2;
    padding-left:45%;
    
    &::after {
      content:'';
      display:block;
      position:absolute;
      top:0;
      left:0;
      z-index: 0;
      background:  url('../assets/main_menu_2.png') no-repeat bottom left/cover;
      width:40%;
      height:100%;
    }
  }
}

/****************  Body  *******************/

.h2-title{
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color:#1e3050;
}
.content {
  padding: 1rem 0;
}

.body {
  //height: calc(100vh - 250px);
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  //overflow-y: auto;
}

/****************  사이드메뉴  *******************/
.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: left 0.3s ease;
  padding: 2rem 1.5rem;
}

.side-menu.open {
  left: 0;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0 0;
}

.side-menu li {
  margin-bottom: 0.5rem;
}

.side-menu a {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.side-menu a:hover {
  background: #e9ecef;
  color: #1e3050;
  transform: translateX(5px);
}

.side-menu a i {
  margin-right: 1rem;
  font-size: 1.2rem;
  color: #666;
  transition: color 0.2s ease;
}

.side-menu a:hover i {
  color: #1e3050;
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-backdrop.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 480px) {
  .side-menu {
    width: 280px;
    left: -280px;
  }
  
  .side-menu ul {
    margin-top: 2rem;
  }
  
  .side-menu a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

/***************   시설점검이력 상세정보 검색  ***************/
.date-range-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;

  .date-label {
    background: #f2f4f8;
    color: #6b6b7b;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 7px 14px;
    font-size: 15px;
    font-weight: 500;
    height: 36px;
    display: flex;
    align-items: center;
    display: none;
  }

  .date-input {
    border: 1px solid #d1d5db;
    border-radius: 0 4px 4px 0;
    font-size: 0.8rem;
    height: 36px;
    background: #fff;
    color: #333;
  }

  .date-sep {
    margin: 0 2px;
    color: #b0b0b0;
    font-size: 18px;
    font-weight: bold;
  }

  button {
    height: 36px;
    margin-left: 5px;
  }
}

@media only screen and (min-width:440px) {
  .date-range-group {
    .date-label {
      display: block;
    }
  }
}

/***************   침수상황관리상세  ***************/

.facility-detail-card {
  .facility-top {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .facility-img-box {
    min-width: 100px;
    min-height: 100px;
    background: #eee;
    border: 1px solid #e9e9ea;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .facility-img-box i {
    font-size: 2rem;
    color: #cbcbcb;
  }

  .facility-info {
    flex: 1;
    font-size: 18px;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .last-report {
    color: #e74c3c;
    font-weight: 500;
  }

  .facility-status-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
  }

  .facility-cam-box {
    width: 100%;
    height: 180px;
    background: #eee;
    border-radius: 12px;
    border: 1px solid #e9e9ea;
    margin: 24px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .facility-cam-box i {
    font-size: 3rem;
    color: #cbcbcb;
  }

  .facility-desc {
    font-size: 17px;
    color: #444;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}
