form label {
  font-weight: 600;
}
form input[type="text"], form textarea, form select {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}
form input[type="submit"]:hover {
  background: #388E3C;
}
/* ==== GALLERY STYLE FOR FRONTEND POSTS ==== */
.daklak-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.daklak-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.daklak-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
  .daklak-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .daklak-gallery img {
    height: 140px;
  }
}

/* ==== FORM STYLE ==== */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

form input[type="text"],
form textarea,
form select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 15px;
  transition: border-color 0.2s;
}

form input[type="text"]:focus,
form textarea:focus,
form select:focus {
  border-color: #4CAF50;
  outline: none;
}

form input[type="submit"] {
  background: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

form input[type="submit"]:hover {
  background: #43A047;
}
/* ==== LIGHTBOX ==== */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

#lightbox-overlay img:hover {
  transform: scale(1.03);
}

#lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Nút đóng */
#lightbox-close {
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
  transition: 0.3s;
}

#lightbox-close:hover {
  color: #f44336;
}
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.image-preview img:hover {
  transform: scale(1.05);
}

.gallery-preview img {
  width: 90px;
  height: 90px;
}



/* basic preview + remove button */
.image-preview { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.preview-item { position:relative; display:inline-block; }
.image-preview img { width:100px; height:100px; object-fit:cover; border-radius:8px; border:1px solid #ccc; box-shadow:0 2px 6px rgba(0,0,0,0.08); transition: transform .15s;}
.image-preview img:hover { transform: scale(1.03); }
.preview-remove{ position:absolute; top:-6px; right:-6px; background:rgba(0,0,0,0.7); color:#fff; border:none; border-radius:50%; width:20px; height:20px; cursor:pointer; font-size:14px; line-height:18px; text-align:center; }
.upload-info { font-size:14px; color:#555; margin-top:6px; font-style:italic; }
#daklak-progress-wrap{ width:100%; background:#eee; padding:6px; border-radius:6px; }
#daklak-progress{ width:0%; height:8px; background:#4CAF50; border-radius:4px; transition: width .2s; }
