/* Settings Page Card Styles */
.settings-card {
  background: var(--bg-card, #fff);
  border: 2px solid var(--border-color, #dde1e7);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 32px 28px 28px 28px;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.settings-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary, #222);
}
.settings-desc {
  font-size: 1rem;
  color: var(--text-secondary, #6c757d);
  margin-bottom: 10px;
}
.settings-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.settings-btn:hover {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}
:root {
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --header-bg: #20232a;
  --header-text: #ffffff;
  --text-main: #222;
  --border: #dde1e7;
  --muted: #6c757d;
  --bg-primary: #ffffff;
  --bg-secondary: #f4f5f7;
  --bg-card: #ffffff;
  --text-primary: #20232a;
  --text-secondary: #6c757d;
  --border-color: #dde1e7;
  --table-header: #f8f9fa;
  --table-row-hover: #f0f4f8;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --card-bg: #242424;
  --header-bg: #1a1a1a;
  --header-text: #e5e7eb;
  --text-main: #e5e7eb;
  --border: #374151;
  --muted: #9ca3af;
  --bg-primary: #1a1a1a;
  --bg-secondary: #0f0f0f;
  --bg-card: #242424;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --border-color: #374151;
  --table-header: #1f1f1f;
  --table-row-hover: #2d2d2d;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  margin: 0;
}

input, select, textarea {
  background: var(--card-bg);
  color: var(--text-main);
  border-color: var(--border);
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

.topbar {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.topbar-nav a {
  color: #cfd3dc;
  text-decoration: none;
  margin-left: 20px;
}

.topbar-nav a.active {
  color: white;
  font-weight: bold;
}

.team-filter {
  background: var(--bg-card, #ffffff);
  border-bottom: 2px solid var(--border-color, var(--border));
  padding: 12px 32px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.team-btn {
  padding: 8px 16px;
  border: 2px solid var(--border-color, #dde1e7);
  background: var(--bg-card, #f9fafb);
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-primary, #222);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.team-btn:hover {
  background: var(--table-row-hover, #e5e7eb);
  border-color: #9ca3af;
}

.team-btn.active {
  background: #1d4ed8;
  color: white;
  border-color: #1d4ed8;
}

.page {
  max-width: 95%;
  margin: 20px auto;
  padding: 0 20px;
}

.card {
  background: var(--card-bg) !important;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border);
}

.card-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg) !important;
}

th {
  text-align: left;
  padding: 10px;
  background: var(--table-header, #f1f3f5);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-primary, var(--muted));
}

td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

tbody tr {
  background: var(--bg-card, #ffffff) !important;
}

tbody tr:nth-child(even) {
  background: var(--table-row-hover, #f0f4f8) !important;
}

/* Badge styling */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
}

.status-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Team Colors */
.team-sp { background: #000000; color: #fbbf24; }
.team-sa { background: #a855f7; color: #ffffff; }
.team-sdh { background: #fb923c; color: #ffffff; }
.team-ss { background: #ef4444; color: #ffffff; }
.team-win { background: #06b6d4; color: #ffffff; }
.team-sld { background: #3b82f6; color: #ffffff; }
.team-pd { background: #22c55e; color: #ffffff; }
.team-com { background: #eab308; color: #000000; }

/* Status Colors */
.status-normal { background: #e2e8f0; color: #1f2933; }
.status-rush { background: #fed7aa; color: #9a3412; }
.status-urgent { background: #fecaca; color: #b91c1c; }
.status-moved { background: #c7f9cc; color: #166534; }

/* Colour Colors */
[data-theme="dark"] .colour-anm,
[data-theme="dark"] .colour-awm,
[data-theme="dark"] .colour-bl3,
[data-theme="dark"] .colour-dus,
[data-theme="dark"] .colour-mn,
[data-theme="dark"] .colour-prg,
[data-theme="dark"] .colour-sbm,
[data-theme="dark"] .colour-smm,
[data-theme="dark"] .colour-ubm,
[data-theme="dark"] .colour-wgm,
[data-theme="dark"] .colour-wpg,
[data-theme="dark"] .colour-zml,
[data-theme="dark"] .colour-bns,
[data-theme="dark"] .colour-abs,
[data-theme="dark"] .colour-ca3,
[data-theme="dark"] .colour-xtm,
[data-theme="dark"] .colour-grm,
[data-theme="dark"] .colour-hbs,
[data-theme="dark"] .colour-bsm,
[data-theme="dark"] .colour-pbm,
[data-theme="dark"] .colour-dos,
[data-theme="dark"] .colour-ism,
[data-theme="dark"] .colour-jam,
[data-theme="dark"] .colour-mcg,
[data-theme="dark"] .colour-sps,
[data-theme="dark"] .colour-mgm,
[data-theme="dark"] .colour-wbg,
[data-theme="dark"] .colour-acd,
[data-theme="dark"] .colour-spd,
[data-theme="dark"] .colour-bcd,
[data-theme="dark"] .colour-kwd,
[data-theme="dark"] .colour-cad,
[data-theme="dark"] .colour-sod { 
  color: #ffffff !important; 
}

.colour-anm { background: transparent; color: #000000; }
.colour-awm { background: transparent; color: #000000; }
.colour-bl3 { background: transparent; color: #000000; }
.colour-dus { background: transparent; color: #000000; }
.colour-mn { background: transparent; color: #000000; }
.colour-prg { background: transparent; color: #000000; }
.colour-sbm { background: transparent; color: #000000; }
.colour-smm { background: transparent; color: #000000; }
.colour-ubm { background: transparent; color: #000000; }
.colour-wgm { background: transparent; color: #000000; }
.colour-wpg { background: transparent; color: #000000; }
.colour-zml { background: transparent; color: #000000; }
.colour-bns { background: transparent; color: #000000; }
.colour-abs { background: transparent; color: #000000; }
.colour-ca3 { background: transparent; color: #000000; }
.colour-xtm { background: transparent; color: #000000; }
.colour-grm { background: transparent; color: #000000; }
.colour-hbs { background: transparent; color: #000000; }
.colour-bsm { background: transparent; color: #000000; }
.colour-pbm { background: transparent; color: #000000; }
.colour-dos { background: transparent; color: #000000; }
.colour-ism { background: transparent; color: #000000; }
.colour-jam { background: transparent; color: #000000; }
.colour-mcg { background: transparent; color: #000000; }
.colour-sps { background: transparent; color: #000000; }
.colour-mgm { background: transparent; color: #000000; }
.colour-wbg { background: transparent; color: #000000; }
.colour-acd { background: transparent; color: #000000; }
.colour-spd { background: transparent; color: #000000; }
.colour-bcd { background: transparent; color: #000000; }
.colour-kwd { background: transparent; color: #000000; }
.colour-cad { background: transparent; color: #000000; }
.colour-sod { background: transparent; color: #000000; }
.colour-wrd { background: transparent; color: #000000; }
.colour-ehs { background: transparent; color: #000000; }
.colour-ccm { background: transparent; color: #000000; }
.colour-csg { background: transparent; color: #000000; }
.colour-cds { background: transparent; color: #000000; }
.colour-sgs { background: transparent; color: #000000; }
.colour-sms { background: transparent; color: #000000; }
.colour-gum { background: transparent; color: #000000; }
.colour-hrs { background: transparent; color: #000000; }
.colour-iss { background: transparent; color: #000000; }
.colour-jas { background: transparent; color: #000000; }
.colour-ndg { background: transparent; color: #000000; }
.colour-pem { background: transparent; color: #000000; }
.colour-ews { background: transparent; color: #000000; }
.colour-wsm { background: transparent; color: #000000; }
.colour-wam { background: transparent; color: #000000; }
.colour-pbt { background: transparent; color: #000000; }
.colour-sit { background: transparent; color: #000000; }
.colour-ist { background: transparent; color: #000000; }
.colour-dot { background: transparent; color: #000000; }
.colour-jat { background: transparent; color: #000000; }
.colour-dut { background: transparent; color: #000000; }
.colour-smt { background: transparent; color: #000000; }
.colour-wgt { background: transparent; color: #000000; }
.colour-mnt { background: transparent; color: #000000; }
.colour-blt { background: transparent; color: #000000; }
.colour-wht { background: transparent; color: #000000; }
.colour-prt { background: transparent; color: #000000; }
.colour-black { background: transparent; color: #000000; }
.colour-other { background: transparent; color: #000000; }

/* Clickable Rows */
.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background-color: var(--table-row-hover) !important;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  background: var(--bg-card, linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%));
  margin: 8% auto;
  padding: 35px;
  border-radius: 16px;
  width: 1100px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: var(--text-primary, #000);
  background: var(--table-row-hover, #f1f3f5);
  transform: rotate(90deg);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--text-primary, #20232a);
  font-size: 1.4rem;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-btn:active {
  transform: scale(0.95);
}

.complete-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  grid-column: 1 / -1;
}

.complete-btn:hover {
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.status-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.status-btn:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.moved-out-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.moved-out-btn:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.missing-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.missing-btn:hover {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

#removeStatusSection {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color, #e5e7eb);
}

#removeStatusSection h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-secondary, #6c757d);
  text-align: center;
}

#removeStatusButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#removeStatusButtons .modal-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  font-size: 0.85rem;
  padding: 10px 16px;
  flex: 1 1 auto;
  min-width: fit-content;
}

/* Hide number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Print styles - only show the board table */
@media print {
  @page {
    size: landscape;
    margin: 0.3cm;
  }
  
  body * {
    visibility: hidden;
  }
  
  .card, .card * {
    visibility: visible;
  }
  
  .card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .topbar,
  .team-filter,
  button {
    display: none !important;
  }
  
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.7rem;
  }
  
  th, td {
    border: 1px solid #000;
    padding: 4px 6px;
  }
  
  th {
    font-size: 0.75rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}
