/* Main Styles */
body {
  background-color: #f8f9fa;
  color: #212529;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

/* Login and Forms */
.auth-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin: 80px auto;
  max-width: 400px;
  padding: 30px;
}

.auth-logo {
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  max-width: 80px;
  text-align: center;
  width: 100%;
}
.auth-logo img {
  height: auto;
  width: 100%;
}

.auth-title {
  color: #333;
  margin-bottom: 25px;
  text-align: center;
}

/* ダッシュボード */
.dashboard-header {
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.btn-actions {
  min-width: 80px;
}

/* Document Form */
.document-form {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  padding: 30px;
}

.pagination .page-link {
  color: #007bff;
}

.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

/* Password protection */
.password-form {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin: 80px auto;
  max-width: 400px;
  padding: 30px;
}

/* Error pages */
.error-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin: 80px auto;
  max-width: 500px;
  padding: 30px;
  text-align: center;
}

.error-code {
  color: #dc3545;
  font-size: 72px;
  margin: 0;
}

.error-message {
  color: #333;
  font-size: 24px;
  margin: 20px 0;
}

/* Loading Indicator */
.loading-overlay {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  transition: visibility 0s, opacity 0.3s;
  visibility: hidden;
  width: 100%;
  z-index: 9999;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  animation: spin 1s linear infinite;
  border: 5px solid #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #007bff;
  height: 50px;
  margin: 0 auto;
  width: 50px;
}

.loading-text {
  color: #333;
  font-weight: bold;
  margin-top: 15px;
  text-align: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-header .btn {
    margin-top: 15px;
  }
}

/* Navigation */
.navbar {
  background-color: #343a40;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.navbar-brand {
  font-weight: bold;
}

.navbar-nav .nav-link {
  font-weight: 500;
}

.bgc-white,
.bgcH-white:hover {
  background-color: #ffffff !important;
}
.bd {
  border: 1px solid rgba(0, 0, 0, 0.0625) !important;
}

.table th {
  font-weight: normal;
  white-space: nowrap;
}

.table th,
.table td {
  padding: 1rem 1rem !important;
}

.overflow-x-scroll {
  overflow-x: auto;
}

.btn {
  white-space: nowrap;
}

.hide-footer {
  display: none !important;
}