/* /var/www/html/siet49/assets/css/main.css */
/* SIET 49th Anniversary Virtual Run 2026 */
/* Theme: Magenta-Pink #E91E63 */

:root {
  --primary: #E91E63;
  --primary-dark: #C2185B;
  --primary-light: #F48FB1;

  --bg-main: #F8F9FC;
  --bg-card: #FFFFFF;

  --text-main: #2D2D2D;
  --text-muted: #777;

  --success: #2E7D32;
  --warning: #F9A825;
  --danger:  #C62828;
  --info:    #1565C0;

  --border-color: #E5E7EB;
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* =========================================================
   Reset & Base
========================================================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

/* =========================================================
   Layout
========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: #fff;
}

/* =========================================================
   Card
========================================================= */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.card-header {
  font-weight: 600;
  margin-bottom: 12px;
}

.card-muted {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   Buttons
========================================================= */

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

/* =========================================================
   Forms
========================================================= */

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.08);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* =========================================================
   Alerts
========================================================= */

.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}

.alert-success {
  background: #E8F5E9;
  color: var(--success);
}

.alert-danger {
  background: #FDECEA;
  color: var(--danger);
}

.alert-warning {
  background: #FFF8E1;
  color: var(--warning);
}

.alert-info {
  background: #E3F2FD;
  color: var(--info);
}

/* =========================================================
   Tables
========================================================= */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tr:hover {
  background: #fff5f8;
}

/* =========================================================
   Dashboard Cards
========================================================= */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  opacity: 0.9;
}

/* =========================================================
   Leaderboard
========================================================= */

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.leader-rank {
  font-weight: 700;
  color: var(--primary);
  width: 40px;
}

.leader-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.leader-distance {
  font-weight: 600;
}

/* =========================================================
   Shipping / Shirt utility styles
========================================================= */

.badge-running {
  background: var(--info);
  color: #fff;
}

.badge-finisher {
  background: var(--primary);
  color: #fff;
}

.badge-pending {
  background: var(--warning);
  color: #fff;
}

.badge-shipped {
  background: var(--success);
  color: #fff;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.meta-box {
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
}

.meta-box .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-box .value {
  font-weight: 700;
  line-height: 1.6;
}

.address-block {
  white-space: pre-line;
  line-height: 1.8;
}

.table-responsive {
  overflow: auto;
  width: 100%;
}

.inline-form {
  display: grid;
  gap: 8px;
}

/* =========================================================
   Footer
========================================================= */

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 20px 0;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .stat-value {
    font-size: 20px;
  }

  .leader-avatar {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   Media (Landing - Full Image Responsive)
========================================================= */

.media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.media .imgbox {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.media .imgbox .img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.media .imgbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.media .cap {
  padding: 10px 12px;
  font-size: 12px;
  color: #555;
}

@media (max-width: 768px) {
  .media .imgbox .img-frame {
    aspect-ratio: 4 / 3;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .media .imgbox .img-frame {
    aspect-ratio: 1 / 1;
    padding: 8px;
  }
}

.rank-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}
.rank-row{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--border-color);
  border-radius:16px;
  padding:10px 12px;
}
.rank-row.me{
  border:2px solid var(--primary);
  background: rgba(233,30,99,0.05);
}
.rank-no{
  min-width:42px;
  height:42px;
  border-radius:14px;
  background:#f7e6ee;
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.rank-info{
  flex:1;
  min-width:0;
}
.rank-name{
  font-weight:800;
  line-height:1.2;
}
.rank-sub{
  font-size:12px;
  color:#666;
  margin-top:2px;
}
