/* ================================================
   Resupply Rocket – Professional Styles v2.0
   Modern B2B SaaS design on top of Bootstrap 5.3
   ================================================ */

:root {
  --navy: #0a2540;
  --teal: #00d4c8;
  --teal-hover: #00b8af;
  --gray-900: #0f172a;
  --gray-700: #64748b;
  --gray-100: #f8fafc;
  --success: #10b981;
}

/* Font & Base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--gray-100);
  color: var(--gray-900);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--navy);
}

/* Containers & Cards */
.container, .card {
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card {
  border: none;
  background: white;
}

.card-header {
  background: white;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 16px 16px 0 0 !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--navy);
  border-color: var(--navy);
}
.btn-primary:hover {
  background-color: #08203a;
  border-color: #08203a;
}

.btn-accent, .send-it-btn {
  background: linear-gradient(90deg, var(--teal), #00e6d8);
  color: #0a2540;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 15px -3px rgb(0 212 200 / 0.4);
}

.send-it-btn {
  padding: 18px 36px;
  font-size: 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.send-it-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 212 200 / 0.5);
}

.send-it-btn .logo-img {
  max-width: 42px;
  background-color: transparent !important;
}

.send-it-btn.sending .logo-img {
  animation: spin 1s linear infinite;
}

/* Forms */
.form-control, .form-select {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 12px 16px;
  font-size: 1rem;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 200, 0.2);
}

/* Tables */
.table {
  border-radius: 12px;
  overflow: hidden;
}
.table thead {
  background-color: #f8fafc;
}
.table th {
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Image buttons (product catalog) */
.image-button {
  cursor: pointer;
  border: 3px solid var(--teal);
  border-radius: 12px;
  padding: 3px;
  transition: all 0.3s ease;
}
.image-button:hover {
  border-color: var(--navy);
  transform: scale(1.05);
}

/* Response messages */
#responseMessage .success {
  background-color: #ecfdf5;
  color: var(--success);
  border: 2px solid var(--success);
}
#responseMessage .error {
  background-color: #fef2f2;
  color: #ef4444;
  border: 2px solid #ef4444;
}

/* Original mobile paint-order stacking (preserved + improved) */
@media (max-width: 576px) {
  #paint_items thead { display: none; }
  #paint_items tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background: white;
  }
  #paint_items td {
    display: block;
    text-align: left !important;
    position: relative;
    padding: 12px 0 12px 50% !important;
    border: none;
  }
  #paint_items td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 10px;
    font-weight: 600;
    color: var(--navy);
  }
}

/* General mobile improvements */
@media (max-width: 576px) {
  body { padding: 10px; }
  .container { padding: 15px; }
  .send-it-btn { font-size: 1.35rem; padding: 16px 28px; }
}

/* Original rules you already had (fully preserved) */
body { margin: 0; padding: 20px; }
.logo { display: block; margin: 0 auto 20px; max-width: 150px; }
h1 { text-align: center; }
form label { display: block; margin: 10px 0 5px; }
form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}
#responseMessage { margin-bottom: 15px; }
a { display: inline-block; margin-top: 10px; font-size: 14px; }
.sending { background-color: #ccc; cursor: not-allowed; }
.table-responsive { overflow-x: auto; }
.table th, .table td { vertical-align: middle; }
.modal-body img { max-height: 300px; width: auto; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
