/* ============================================================
   Ceramic Deposit Manager - Full Responsive Stylesheet
   ============================================================ */

/* Global Box Sizing & Font Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

.chdm-login, .chdm-customer-page, .chdm-dashboard, .chdm-card, 
.chdm-form input, .chdm-form textarea, .chdm-form select, 
.chdm-login input, .chdm-login select, .chdm-form button, 
.chdm-login button, .chdm-card button, .chdm-dashboard select {
  font-family: "Lato", sans-serif;
}

/* Layout Containers */
.chdm-login, .chdm-customer-page, .chdm-dashboard {
  max-width: 980px;
  width: 100%;
  margin: 30px auto;
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: rgba(193, 193, 193, 0.06);
}

/* Card Styling */
.chdm-card {
}

.chdm-card h1, .chdm-card h2 {
  margin-top: 0;
      font-family: "Lato", Sans-serif;
    font-size: 30px;    
    margin-bottom: 10px;
}

/* Form & Grid Structures */
.chdm-form, .chdm-grid {
  display: grid;
  gap: 18px;
}

.chdm-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chdm-form label, .chdm-login label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
}

.chdm-form > label, .chdm-dashboard > label {
  display: block;
  font-weight: 600;
}

.chdm-dashboard > label {
  margin: 0 0 20px;
}

/* Input Fields */
.chdm-form input, .chdm-form textarea, .chdm-form select, 
.chdm-login input, .chdm-login select, .chdm-dashboard select {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(161, 161, 161, 0.41) !important;
  border-radius: 8px !important;
  background: #ffffff;
  font-size: 15px;
}

/* Primary Button Styling */
.chdm-form button, .chdm-login button, .chdm-card button {
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  background: #FBC50F;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s ease, opacity 0.2s ease;
  font-family: "Lato", Sans-serif;
    margin-top: 10px;
}

.chdm-form button:hover, .chdm-login button:hover, .chdm-card button:hover {
  background: #000000;
  color: #fff;
}

/* Secondary Button */
.chdm-secondary {
  background: #fbc50f !important;
  color: #ffffff !important;
  border: 1px solid #ccd2d9 !important;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  padding: 10px 25px;
  border-radius: 10px;
}

.chdm-secondary:hover {
  background: #000 !important;
}

/* Alerts & Messages */
.chdm-message {
  margin-top: 12px;
  font-weight: 600;
}

.chdm-error {
  color: #b42318;
  background: #fff3f2;
  border: 1px solid #fecdca;
  padding: 12px;
  border-radius: 8px;
}

.chdm-note, .chdm-secure {
  color: #667085;
  font-size: 14px;
}

.chdm-success {
  border-top: 5px solid #16a34a;
}

/* Topbar & Summary */
.chdm-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}

.chdm-topbar h2 {
  font-family: "Lato", sans-serif;
  font-size: 30px;
  color: #000000;
}

.chdm-summary {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  overflow: hidden;
  margin: 15px 0 25px;
}

.chdm-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f3;
}

.chdm-summary-row:last-child {
  border-bottom: 0;
}

.chdm-summary-row span {
  color: #667085;
}

.chdm-deposit-row {
  background: #f8fafc;
  font-size: 18px;
}

.chdm-deposit-row strong {
  font-size: 24px;
}

/* Checkbox and Special Links */
.chdm-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0;
  font-weight: 400 !important;
}

.chdm-check input {
  width: auto !important;
  margin-top: 4px;
}

.chdm-link-result {
      padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #ccc;
}
.chdm-link-result p a{
        border-radius: 10px;
    padding: 14px 20px;
    background: #FBC50F;
    color: #ffffff !important;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    font-family: "Lato", Sans-serif;
    margin-top: 10px;
    display: inline-block;
}
.chdm-link-result p a:hover{
    background: #000;
}
.chdm-link-result input {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
}

/* Admin Table & Utility */
.chdm-admin {
  width: 100%;
  overflow-x: auto;
}

.chdm-admin table {
  width: 100%;
  border-collapse: collapse;
}

.chdm-admin table input {
  max-width: 280px;
  width: 100%;
}

.chdm-admin code {
  background: #f4f4f4;
  padding: 3px 6px;
  border-radius: 4px;
}

.chdm-admin form {
  display: inline;
}

.chdm-admin .button-link-delete {
  color: #b32d2e;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .chdm-login,
  .chdm-customer-page,
  .chdm-dashboard {
    margin: 20px auto;
    padding: 10px;
  }
  .chdm-grid {
    grid-template-columns: 1fr;
  }
  .chdm-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .chdm-card {
    padding: 20px;
  }
  .chdm-form button,
  .chdm-login button,
  .chdm-card button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .chdm-summary-row {
    flex-direction: column;
    gap: 6px;
  }
  .chdm-deposit-row strong {
    font-size: 20px;
  }
}