/* ====== GLOBAL ====== */
body {
  font-family: Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: auto;
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,255,200,0.2);
}

h1 {
  margin-bottom: 20px;
}

/* ====== BUTTONS ====== */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00e0ff, #ff004c);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.icon-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.icon-btn img {
  width: 20px;
  height: 20px;
}

/* ====== PHOTO LIST ====== */
.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  justify-content: center;
}

.photo-item {
  position: relative;
  width: 120px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px #00e0ff33, 0 0 15px #ff004c22;
}

.photo-item img {
  width: 100%;
  display: block;
}

.remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #ff004c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
  text-align: center;
}

/* ====== MODAL CROP ====== */
#cropModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}
#cropModal.show {
  display: flex;
  opacity: 1;
}

.crop-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: #111;
  padding: 15px;
  border-radius: 12px;
  max-width: 95%;
  max-height: 90%;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,224,255,0.3);
  position: relative;
  z-index: 10000;
}

.crop-preview-box {
  flex: 1;
  min-width: 120px;
  max-width: 150px;
  background: #000;
  border: 2px solid #00e0ff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.crop-preview-box img {
  width: 100%;
  height: auto;
  display: block;
}

.crop-box {
  flex: 3;
  min-width: 250px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.crop-box img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  display: block;
}

/* tombol di bawah */
.crop-buttons {
  width: 100%;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  z-index: 10001;
}
.crop-buttons button {
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.crop-buttons button:hover {
  transform: scale(1.05);
}
.btn-apply {
  background: #00e0ff;
  color: #000;
}
.btn-cancel {
  background: #ff004c;
  color: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .crop-content {
    flex-direction: column;
    align-items: center;
  }
  .crop-box img {
    max-height: 50vh;
  }
  .crop-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .crop-buttons button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .crop-preview-box {
    max-width: 120px;
    margin-bottom: 10px;
  }
}
