/* 1) 기본값 리셋 */
html, body {
    margin: 0;
    padding: 0;
}
  
/* 2) 메인 콘텐츠: 네비게이션 바가 fixed-top이므로,
      그만큼 margin-top을 줘서 본문이 가려지지 않게 함.
      또한 페이지를 충분히 길게(200vh) 만들어 스크롤 유도. */
.main-content {
  margin-top: 200px;  /* 네비게이션 바 높이만큼 조정 */
  min-height: 200vh;  /* 2배 화면 높이 (원하시면 300vh 등 조정 가능) */
}
  
/* 3) 푸터: 검은 배경, 흰 글씨 + 적절한 패딩 */
footer {
  background-color: #000; /* 검은색 */
  color: #fff;            /* 흰색 글씨 */
  padding: 2rem 0;        /* 세로 여백 */
}

/* 모든 통일 버튼에 같은 최소 너비를 지정하는 예시 */
.btn-same-width {
  min-width: 200px; /* 원하는 값 */
  /* 필요하다면 text-align: center; etc... */
}

/* 네비게이션 바 스타일 개선 */
.navbar-nav .nav-item {
  margin-left: 20px; /* 요소 간 간격 추가 */
}

.navbar-nav .nav-link {
  font-size: 1.1rem; /* 글씨 크기 키우기 */
  font-weight: 600; /* 글씨 더 진하게 */
  color: #333 !important; /* 기본 색상 더 진하게 */
  transition: color 0.3s ease-in-out; /* 색상 변화 부드럽게 */
}

/* 커서 올라갔을 때 파란색으로 변경 */
.navbar-nav .nav-link:hover {
  color: #007bff !important; /* 부트스트랩 기본 파란색 */
}

.locker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
/* 두 섹션을 나누는 컨테이너 */
.two-sections {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}
.left-section, .right-section {
  flex: 1;
  padding: 10px;
}

.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-box {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* 원래 기능 유지: 사용 가능하면 연두, 불가능하면 회색 */
.available { 
  background-color: lightgreen; 
}
.unavailable { 
  background-color: lightgray; 
}

/* 사물함 그리드: 항상 6열 유지하되, 화면이 작으면 셀 크기를 자동 축소 */
.locker-grid {
  display: grid;
  gap: 10px;
  justify-content: center;
  /* 6개의 셀, 각 셀은 최대 60px이지만, 화면이 작으면 (전체 너비 - 5×10px gap)로 자동 계산 */
  grid-template-columns: repeat(6, min(60px, calc((100% - 50px)/6)));
}

.locker-box {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  /* 셀의 너비에 맞춰 100% 채우고, 정사각형 유지 */
  width: 100%;
  aspect-ratio: 1 / 1;
}

.locker-box.available:hover {
  background-color: #90ee90; /* hover 시 약간 강조 */
}

.locker-box.unavailable {
  cursor: not-allowed;
}

/* 오른쪽 섹션 폼 텍스트와 입력 필드 예쁘게 처리 */
.right-section h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}
.locker-form {
  margin-top: 20px;
}
.locker-form .form-row {
  margin-bottom: 15px;
}
.locker-form label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}
.locker-form input,
.locker-form select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.locker-form input:focus,
.locker-form select:focus {
  border-color: #007bff;
  outline: none;
}
.locker-form button {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.locker-form button:hover {
  background-color: #0056b3;
}

/* 반응형 스타일: 화면폭 480px 이하일 때 버튼 영역 조정 */
@media only screen and (max-width: 700px) {
  .btn-same-width {
    min-width: 0;
    width: 100%;
  }
  .two-sections {
    flex-direction: column;
  }
}