
/* TWODEW TRACKER */
/* Application styles */

/* Collection inventory */

.collection-section {
  margin-top: 36px;
  background: #172235;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
}

.collection-heading h2 {
  margin: 0;
  font-size: 21px;
}

.collection-heading p {
  margin-top: 6px;
}

.collection-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 14px;
}

.collection-controls input {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.collection-controls select {
  min-width: 170px;
  padding: 12px;
  border: 1px solid #475569;
  border-radius: 8px;
  background: #0b1220;
  color: #f8fafc;
  font-size: 14px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.collection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.collection-table th {
  padding: 14px 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #475569;
  white-space: nowrap;
}

.collection-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #334155;
  vertical-align: middle;
}

.collection-table tr:last-child td {
  border-bottom: none;
}

.collection-table tbody tr:hover {
  background: #1e293b;
}

.cell-secondary {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 5px;
}

#results-count {
  margin: 12px 0;
}

#empty-message {
  padding: 24px 12px;
  text-align: center;
}

#empty-message[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .collection-section {
    padding: 16px;
  }

  .collection-table {
    min-width: 700px;
  }

  .stat-card {
    padding: 18px;
  }
}

/* ==========================================
   TWODEW TRACKER - ADD CARD FORM
   ========================================== */

#add-card-form {
  max-width: 650px;
}

#add-card-form label {
  display: block;
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
}

#add-card-form input,
#add-card-form select,
#add-card-form textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: #0b1220;
  border: 1px solid #475569;
  border-radius: 8px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 16px;
}

#add-card-form input:focus,
#add-card-form select:focus,
#add-card-form textarea:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
  border-color: #38bdf8;
}

#add-card-form input::placeholder,
#add-card-form textarea::placeholder {
  color: #64748b;
}

#add-card-form textarea {
  min-height: 90px;
  resize: vertical;
}

#save-card-button {
  margin-top: 24px;
  padding: 14px 24px;
}

#add-card-message {
  margin-top: 20px;
  font-size: 14px;
  color: #fca5a5;
}

@media (max-width: 600px) {
  #add-card-form {
    max-width: 100%;
  }

  #save-card-button {
    width: 100%;
  }
}
