/* ============================================================
   project-new.css  —  Form Tambah Proyek Baru
   Lokasi: get/css/project-new.css
   ============================================================ */

/* ── Card utama ── */
.pn-card {
  background: rgba(21, 21, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #6c6c72;
  border-radius: 16px;
  padding: 2rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Header ── */
.pn-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #6c6c72;
}
.pn-header i {
  font-size: 2rem;
  color: var(--get-hover, #c0392b);
}
.pn-header h3 {
  margin: 0;
  color: var(--get-text, #c8c8d0);
  font-size: 1.15rem;
}

/* ── Form fields ── */
#project-new-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pn-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pn-field label {
  font-size: 0.93rem;
  font-weight: 600;
  color: #8c8c92;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pn-field label i {
  color: var(--get-hover, #c0392b);
  font-size: 0.9rem;
}
.pn-optional {
  font-weight: 400;
  color: #6c6c72;
  font-size: 0.82rem;
}

.pn-field input,
.pn-field textarea {
  padding: 13px 16px;
  background: var(--get-bg, #1a1a20);
  border: 1px solid #6c6c72;
  border-radius: 10px;
  color: var(--get-text, #c8c8d0);
  font-size: 0.97rem;
  font-family: inherit;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  resize: vertical;
  box-sizing: border-box;
  width: 100%;
}
.pn-field input:focus,
.pn-field textarea:focus {
  outline: none;
  border-color: var(--get-hover, #c0392b);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.pn-field input::placeholder,
.pn-field textarea::placeholder {
  color: #6c6c72;
}

.pn-hint {
  font-size: 0.8rem;
  color: #6c6c72;
  line-height: 1.5;
}
.pn-hint code {
  color: #f5b21f;
  background: rgba(0, 0, 0, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
}

/* ── Info box ── */
.pn-infobox {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.28);
  border-radius: 10px;
}
.pn-infobox > i {
  color: #c0392b;
  margin-top: 3px;
  flex-shrink: 0;
}
.pn-infobox ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #8c8c92;
  font-size: 0.87rem;
  line-height: 1.9;
}
.pn-infobox code {
  color: #f5b21f;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.82rem;
}

/* ── Tombol aksi ── */
.pn-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ── Status bar ── */
.pn-status {
  display: none;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.4rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.93rem;
  border: 1px solid rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.08);
  animation: pnFadeIn 0.25s ease;
}
@keyframes pnFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pn-status.show {
  display: flex;
}
.pn-status.ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.32);
}
.pn-status.err {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.32);
}

.pn-status-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--get-hover, #c0392b);
}
.pn-status.ok .pn-status-icon {
  color: #1f9d3a;
}
.pn-status.err .pn-status-icon {
  color: #c0392b;
}

.pn-status-text {
  flex: 1;
  color: var(--get-text, #c8c8d0);
  line-height: 1.5;
}
.pn-status-text code {
  color: #f5b21f;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.pn-status-text strong {
  color: #fff;
}
