/* =====================================================
   START PROJECT – CLEAN PRODUCTION VERSION
===================================================== */

.section {
  margin: 44px auto;
  padding: 1.6rem 1.4rem;
  max-width: 1100px;
}

/* ==============================
   PRODUCT GRID
============================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-card p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ==============================
   PROJECT REQUEST CARDS
============================== */

.project-request-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  margin-bottom: 1.4rem;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-id {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 4px;
}

.project-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
  text-transform: capitalize;
}

.project-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.project-status.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.project-status.approved {
  background: #dcfce7;
  color: #166534;
}

/* ==============================
   BUTTONS
============================== */

.project-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card-actions button,
.popup-footer button {
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
}

.view-btn {
  background: #6c47ff;
  color: white;
}

.edit-btn {
  background: #2563eb;
  color: white;
}

.danger-btn {
  background: #ef4444;
  color: white;
}

.ok-btn {
  background: #111827;
  color: white;
}

.project-card-actions button:hover,
.popup-footer button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ==============================
   POPUP SYSTEM
============================== */

.license-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.license-popup.hidden {
  display: none;
}

.license-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.project-popup-box {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 18px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: popupFade 0.25s ease;
}

@keyframes popupFade {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-header h2 {
  margin-bottom: 1rem;
}

.popup-body {
  max-height: 60vh;
  overflow-y: auto;
}

.popup-field {
  margin-bottom: 14px;
}

.popup-field strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.popup-field p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.8;
}

.popup-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
