/* ==========================================================================
   U Track Warranty Services MVP Stylesheet
   Theme based on legacy CSS: black background, orange/gold accents, clean MVP UI
   File: /public/assets/css/utrack-mvp.css
   ========================================================================== */

:root {
  --ut-bg: #000000;
  --ut-bg-soft: #101010;
  --ut-panel: #161616;
  --ut-panel-2: #1f1f1f;
  --ut-border: #d0a667;
  --ut-border-soft: rgba(208, 166, 103, 0.35);
  --ut-text: #f6f1e8;
  --ut-muted: #c9bfae;
  --ut-orange: #ff8c00;
  --ut-orange-dark: #c66b00;
  --ut-gold: #d0a667;
  --ut-white: #ffffff;
  --ut-danger: #ff4d4d;
  --ut-success: #3fcf7f;
  --ut-warning: #ffd166;
  --ut-info: #66afe9;
  --ut-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --ut-radius: 12px;
  --ut-radius-sm: 8px;
  --ut-max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1d1306 0%, #000000 38%, #000000 100%);
  color: var(--ut-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Typography and links
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  color: var(--ut-gold);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--ut-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--ut-orange);
}

small,
.muted {
  color: var(--ut-muted);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container,
.ut-container {
  width: min(100% - 32px, var(--ut-max-width));
  margin: 0 auto;
}

main.container,
main.ut-container {
  padding: 28px 0 50px;
}

.page-shell {
  min-height: 100vh;
}

.card,
.panel,
.warranty-card,
.dashboard-card,
.dashboard-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dashboard-card-link:hover,
.dashboard-card-link:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.dashboard-card-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.dashboard-card-action {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}
.form-card {
  background: linear-gradient(180deg, var(--ut-panel) 0%, #0f0f0f 100%);
  border: 1px solid var(--ut-border-soft);
  border-radius: var(--ut-radius);
  box-shadow: var(--ut-shadow);
  padding: 22px;
}

.card + .card,
.panel + .panel,
.warranty-card + .warranty-card {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 2px solid var(--ut-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  width: min(100% - 32px, var(--ut-max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand,
.logo {
  color: var(--ut-gold);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.brand span,
.logo span {
  color: var(--ut-orange);
}

.nav,
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a,
.site-nav a {
  color: var(--ut-white);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
}

.nav a:hover,
.site-nav a:hover,
.nav a.active,
.site-nav a.active {
  color: var(--ut-orange);
  border-color: var(--ut-border-soft);
  background: rgba(255, 140, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dashboard-card {
    background: transparent;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.dashboard-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.5fr 1fr;
  margin-bottom: 22px;
}


.stats-grid,
.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

.stat-card {
  background: var(--ut-panel);
  border: 1px solid var(--ut-border-soft);
  border-radius: var(--ut-radius);
  padding: 18px;
}

.stat-card .stat-value {
  color: var(--ut-orange);
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  color: var(--ut-muted);
  font-size: 0.95rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn,
button,
input[type="submit"],
input[type="button"] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ut-border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ut-orange), var(--ut-orange-dark));
  color: #111111;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  color: #000000;
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.18);
}

.btn.secondary,
.btn-outline {
  background: transparent;
  color: var(--ut-gold);
}

.btn.secondary:hover,
.btn-outline:hover {
  color: var(--ut-orange);
  background: rgba(255, 140, 0, 0.08);
}

.btn.danger {
  background: var(--ut-danger);
  border-color: var(--ut-danger);
  color: #ffffff;
}

.btn.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

form {
  margin: 0;
}

.form-card {
  max-width: 820px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group,
.field {
  margin-bottom: 16px;
}

label {
  display: block;
  color: var(--ut-gold);
  font-weight: 700;
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  background: #ffffff;
  border: 2px solid var(--ut-border);
  border-radius: var(--ut-radius-sm);
  color: #000000;
  font: inherit;
  padding: 9px 10px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ut-info);
  box-shadow: 0 0 0 4px rgba(102, 175, 233, 0.18);
  outline: none;
}

.form-help {
  color: var(--ut-muted);
  font-size: 0.9rem;
  margin-top: 5px;
}

.warranty-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  border: 1px dashed var(--ut-border-soft);
  border-radius: var(--ut-radius);
  background: rgba(208, 166, 103, 0.05);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Tables and warranty list
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ut-border-soft);
  border-radius: var(--ut-radius);
  background: var(--ut-panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

th,
td {
  border-bottom: 1px solid rgba(208, 166, 103, 0.18);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #0c0c0c;
  color: var(--ut-gold);
  font-weight: 700;
}

tr:hover td {
  background: rgba(255, 140, 0, 0.04);
}

.actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-links a {
  display: inline-block;
  margin: 0 0 5px;
}

/* --------------------------------------------------------------------------
   Alerts, badges, statuses
   -------------------------------------------------------------------------- */

.alert {
  border-radius: var(--ut-radius-sm);
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--ut-border-soft);
}

.alert-success {
  color: #062b18;
  background: var(--ut-success);
  border-color: var(--ut-success);
}

.alert-danger,
.alert-error {
  color: #ffffff;
  background: #7a1111;
  border-color: var(--ut-danger);
}

.alert-warning {
  color: #1d1600;
  background: var(--ut-warning);
  border-color: var(--ut-warning);
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-active,
.status-active {
  background: rgba(63, 207, 127, 0.16);
  color: var(--ut-success);
  border: 1px solid rgba(63, 207, 127, 0.35);
}

.badge-expired,
.status-expired {
  background: rgba(255, 77, 77, 0.16);
  color: var(--ut-danger);
  border: 1px solid rgba(255, 77, 77, 0.35);
}

.badge-expiring,
.status-expiring {
  background: rgba(255, 209, 102, 0.16);
  color: var(--ut-warning);
  border: 1px solid rgba(255, 209, 102, 0.35);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.pagination a,
.pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ut-border-soft);
  border-radius: 999px;
  color: var(--ut-white);
  text-decoration: none;
  padding: 6px 10px;
}

.pagination a:hover,
.pagination .active {
  background: var(--ut-orange);
  color: #000000;
  border-color: var(--ut-orange);
}

.pagination .disabled {
  color: #777777;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: min(100%, 460px);
  background: linear-gradient(180deg, var(--ut-panel) 0%, #0b0b0b 100%);
  border: 2px ridge var(--ut-border);
  border-radius: var(--ut-radius);
  box-shadow: var(--ut-shadow);
  padding: 28px;
}

.auth-card h1,
.auth-card h2 {
  text-align: center;
}

.auth-card .btn,
.auth-card button,
.auth-card input[type="submit"] {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--ut-border-soft);
  color: var(--ut-muted);
  padding: 24px 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.full-width {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .form-grid,
  .warranty-months,
  .dashboard-hero,
  .stats-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .panel,
  .warranty-card,
  .dashboard-card,
  .form-card,
  .auth-card {
    padding: 18px;
  }

  .nav,
  .site-nav,
  .quick-actions,
  .actions,
  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav a,
  .site-nav a,
  .btn {
    width: 100%;
    justify-content: center;
  }
}
.hero-section {
    padding: 80px 20px;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
}

.hero-buttons {
    margin-top: 30px;
}

.features-section {
    padding: 50px 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}

.feature-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cta-section {
    padding: 60px 20px;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
}

.pricing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.price {
    font-size: 30px;
    margin: 20px 0;
}

.featured {
    transform: scale(1.05);
}

.contact-card {
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.contact-form-container {
    margin-top: 40px;
}

.contact-form-container textarea {
    resize: vertical;
}

/* Phase 3 Public Website Additions */
.site-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;padding:16px 24px
  }
  
.nav-brand a{font-weight:700;
  text-decoration:none
  }
  
.nav-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px;
  list-style:none;
  margin:0;padding:0
  }
  
.hero-section{  
  padding:80px 20px;
  text-align:center
  }
  
.hero-text{
  max-width:780px;
  margin:0 auto;
  font-size:1.125rem
  }
.hero-buttons{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;margin-top:28px
  }
.feature-grid,.pricing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:22px;margin-top:28px
  }
.feature-card,.pricing-card,.contact-card,.faq-item{
  padding:24px;
  border:1px solid #ddd;
  border-radius:10px
  }

.price{font-size:1.8rem;
  font-weight:700
  }

.featured{
    transform:scale(1.03)
    }

.cta-section{
  padding:60px 20px;
  text-align:center
  }

.legal-page{
max-width:900px
}

.btn-small{
padding:8px 12px
}

.admin-action-btn {
    width: 140px;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 3px;
    display: inline-block;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-active {
    background: #d8f5df;
    color: #146c2e;
}

.status-free {
    background: #eef1f5;
    color: #444;
}

.status-cancelled {
    background: #ffe0e0;
    color: #9b1c1c;
}

.status-past_due,
.status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.status-trialing {
    background: #dbeafe;
    color: #1d4ed8;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
}

.alert-success {
    background: #d8f5df;
    color: #146c2e;
    border: 1px solid #b7ebc0;
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
}

.alert-info {
    background: #e8f1ff;
    color: #174ea6;
    border: 1px solid #bcd3ff;
    padding: 12px;
    margin: 12px 0;
    border-radius: 6px;
}

.notification-unread {
    border-left: 5px solid #174ea6;
    background: #f5f9ff;
    font-color:ut-orange-dark: #c66b00;
}

.attachment-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    background: #eef6ff;
    color: #0b5394;
    border: 1px solid #b6d7ff;
}

