#result4,
#result5,
#result6,
#result7,
#result8,
#result9,
#result10,
#result11 {
  flex: 0 0 100px; /* ความกว้างของแต่ละช่อง */
  text-align: center;
}
.sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  margin: 5px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar .nav-link.active {
  color: white;
  background-color: #3498db;
}

.sidebar .nav-link i {
  width: 20px;
  margin-right: 10px;
}

.content-wrapper {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.top-navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
}

.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.offcanvas-sidebar {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
}
.main-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.info-box {
  background-color: #cfe2ff;
  border-left: 4px solid #0d6efd;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}
.section-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #212529;
}
.time-input {
  position: relative;
}
.time-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6c757d;
}
.cursor-pointer {
  cursor: pointer;
}

.transition-all {
  transition: all 0.15s ease-in-out;
}

.hover-border-gray:hover {
  border-color: var(--bs-border-color-translucent) !important;
}
.domain-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  /* สีพื้นหลังเริ่มต้น (เหมือนสีเทาอ่อนในรูป) */
  background-color: var(--bs-light-bg-subtle);
  border: 1px solid var(--bs-border-color);
}
/* สถานะที่ถูกเลือก (สีฟ้า) */
.domain-card.selected {
  background-color: var(--bs-info-bg-subtle);
  border: 2px solid var(--bs-primary);
}
/* วงกลมสถานะ */
.status-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  flex-shrink: 0; /* ป้องกันการย่อ */
  position: relative;
}
@keyframes status-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-dot.bg-success {
  animation: status-dot-pulse 2s infinite;
}
.domain-header {
  background: white;
  border-radius: 15px;
  padding: 20px 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.domain-header h5 {
  margin: 0;
  color: #333;
  font-size: 18px;
}

.domain-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.domain-link:hover {
  color: #764ba2;
}
.section-title {
  color: #6c757d;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.image-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.image-upload-area:hover {
  border-color: #667eea;
  background: #f0f2ff;
  transform: translateY(-2px);
}

.image-upload-area.has-image {
  padding: 0;
  border-style: solid;
}

.image-container {
  position: relative;
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}

.upload-icon {
  font-size: 48px;
  color: #dee2e6;
  margin-bottom: 10px;
}

.upload-text {
  color: #6c757d;
  margin: 10px 0 5px;
  font-size: 14px;
}

.upload-subtext {
  color: #adb5bd;
  font-size: 12px;
}

.remove-image {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.image-upload-area.has-image .remove-image {
  display: flex;
}

.remove-image:hover {
  background: #dc3545;
}

.side-banner-col {
  margin-bottom: 20px;
}

.side-banner-label {
  color: #6c757d;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

hr {
  margin: 30px 0;
  opacity: 0.1;
}

.header-section {
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .side-banner-col {
    margin-bottom: 15px;
  }
}

@media (min-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 100;
  }

  .content-wrapper {
    margin-left: 250px;
  }
}
