/* Base */
body {
  margin: 0;
  padding: 0;
  background: #0a0a14;
  color: #e6e6e6;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 14px;
}


/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #ff9c3a;
  color: black;
  font-weight: bold;
  letter-spacing: 1px;
}

header h1 {
  margin: 0;
  font-size: 18px;
}

/* GRID LAYOUT */
.lcars-grid {
  display: grid;
  grid-template-columns: 90px 320px 220px 1fr;
  gap: 10px;
  padding: 10px;
  height: calc(100vh - 60px);
  box-sizing: border-box;
}

.space10 {
  height: 10px;
}

.space20 {
  height: 20px;
}

.space40 {
  height: 40px;
}

/* ============================= */
/* LCARS SIDEBAR */
/* ============================= */

.lcars-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lcars-block {
  height: 120px;
  border-radius: 0 40px 40px 0;
}

.lcars-orange {
  background: #ff9c3a;
}

.lcars-purple {
  background: #c17bff;
}

.lcars-blue {
  background: #6aa9ff;
}

/* ============================= */
/* LCARS PANELS                  */
/* ============================= */

.lcars-panel {
  background: #14141f;
  border-top-left-radius: 20px;
  padding: 14px;
  border-left: 10px solid #ff9c3a;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.7);
}

.lcars-momentum {
  border-left: 10px solid #c17bff;
}

.lcars-results {
  border-left: 10px solid #6aa9ff;
}

/* ============================= */
/* TASK PANEL                    */
/* ============================= */

button {
  background: #ff9c3a;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  min-width: 160px;
  margin-top: 10px;
}

button:hover {
  background: #ffc16b;
}

button:active {
  transform: scale(0.97);
}

/* FORM CONTROLS */
.input-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 4px;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #ff9c3a;
}

input[type="number"] {
  width: 60px;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: #2b2b38;
  color: white;
  box-sizing: border-box;
  font-size: 14px;
  text-align: center;
}

input[type="checkbox"] {
  margin-right: 6px;
}

/* ============================= */
/* MOMENTUM PANEL                */
/* ============================= */

.momentum-panel {
  display: flex;
  flex-direction: column;

}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
}

.momentum-value {
  font-size: 36px;
  font-weight: bold;
  color: #5566ff;
  margin: 0;
}

.threat-value {
  font-size: 36px;
  font-weight: bold;
  color: #ff2200;
  margin: 0;
}

.momentum-panel button {
  min-width: 50px;
  margin-top: 0px;
  margin-bottom: 0px; 
  font-size: 17px;
}

/* ============================= */
/* RESULT PANEL                  */
/* ============================= */

.history-entry {
  background-color: #2b2b38;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  border-left: 4px solid #ff9c3a;
}

.history-entry p {
  margin: 5px 0;
  color: white;
}

.history-scroll {
  max-height: 600px;
  overflow-y: auto;
}

/* DICE DISPLAY */
.dice {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.die {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  background: #333;
  border: 2px solid #555;
}

/* Dice states */
.crit {
  background: #3fa34d;
}

.success {
  background: #3fa3ff;
}

.complication {
  background: #d34b4b;
}

.blank {
  color: transparent;
}

.effect {
  color: transparent;
  background-image: url('assets/sta.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================= */
/* DISCORD ACTIVITY SIZE FIXES   */
/* ============================= */

@media (max-width: 900px) {

  .lcars-grid {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto auto;
  }

  .lcars-sidebar {
    grid-row: span 3;
  }
}