/* ============================================
   NEON-BRUTALISM.CSS — Komponen UI Kustom
   ============================================ */

.card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-hard);
  padding: 23px;
  margin-bottom: 23px;
  position: relative;
  transition: var(--transition);
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}
.card-accent-cyan { border-left: 6px solid var(--neon-cyan); }
.card-accent-magenta { border-left: 6px solid var(--neon-magenta); }
.card-accent-yellow { border-left: 6px solid var(--neon-yellow); }
.card-accent-green { border-left: 6px solid var(--neon-green); }
.card-accent-red { border-left: 6px solid var(--neon-red); }
.card-accent-orange { border-left: 6px solid var(--neon-orange); }

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-hard);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-primary {
  background: var(--neon-cyan);
  color: #000;
}
.btn-primary:hover {
  background: #00E5E5;
}

.btn-success {
  background: var(--neon-green);
  color: #000;
}
.btn-success:hover {
  background: #00E63B;
}

.btn-danger {
  background: var(--neon-red);
  color: #fff;
}
.btn-danger:hover {
  background: #E63500;
}

.btn-warning {
  background: var(--neon-yellow);
  color: #000;
}
.btn-warning:hover {
  background: #E6C700;
}

.btn-magenta {
  background: var(--neon-magenta);
  color: #fff;
}
.btn-magenta:hover {
  background: #E600E6;
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.8rem;
  min-height: 32px;
}

.btn-outline {
  background: transparent;
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--bg-secondary);
  transform: translate(2px, 2px);
}

.form-group {
  margin-bottom: 23px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.form-control {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-bottom: var(--border-width) solid var(--border-color);
  background: transparent;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-primary);
}
.form-control:focus {
  border-bottom-color: var(--neon-cyan);
  box-shadow: 0 2px 0 var(--neon-cyan);
}
.form-control::placeholder {
  color: #888;
  font-style: italic;
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
  border: var(--border-width) solid var(--border-color);
  padding: 10px;
}
textarea.form-control:focus {
  border-color: var(--neon-cyan);
  box-shadow: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  transition: var(--transition);
}
.checkbox-group:last-child {
  border-bottom: none;
}

.checkbox-custom {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
}
.checkbox-custom.checked {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
}
.checkbox-custom.checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
}

.checkbox-label {
  flex: 1;
  font-size: 1rem;
  cursor: pointer;
  word-break: break-word;
}
.checkbox-label.done {
  text-decoration: line-through;
  color: #888;
}
.checkbox-meta {
  font-size: 0.75rem;
  color: #888;
  display: block;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 3px 4px 3px 0;
  cursor: pointer;
  transition: var(--transition);
}
.tag:hover {
  background: var(--neon-cyan);
  transform: translate(-1px, -1px);
}
.tag.active {
  background: var(--neon-yellow);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 23px;
}
.modal-box {
  background: var(--bg-primary);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-hard);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 23px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 17px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}
.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 23px;
}
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 23px;
  flex-wrap: wrap;
}

.notification {
  position: fixed;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-hard);
  padding: 17px 30px;
  z-index: 10001;
  max-width: 90%;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}
.notification.success { border-left: 6px solid var(--neon-green); }
.notification.error { border-left: 6px solid var(--neon-red); }
.notification.info { border-left: 6px solid var(--neon-cyan); }

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-transform: uppercase;
}
.badge-neon {
  background: var(--neon-cyan);
  color: #000;
}

.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: #888;
}
.empty-state svg {
  max-width: 150px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border-color);
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  background: var(--neon-cyan);
  transition: width 0.4s ease;
  width: 0%;
}
.progress-fill.green { background: var(--neon-green); }
.progress-fill.yellow { background: var(--neon-yellow); }
.progress-fill.magenta { background: var(--neon-magenta); }
