/* -----------------------------
   global.style.css (Clean & Responsive)
----------------------------- */

:root {
  --whsblue: cornflowerblue;
  --whsBlue1: #acbcd4;
  --whslightblue: #94acd8;
  --whsYellow: #f4bc44;
  --whsgreen: #7c9c4c;
  --whslightgreen: #98ac70;
  --whsred: #cc4a4a;
  --whsbrown: #8b5e3c;
  --whscrose: #d4acb4;
  --whsgray: gray;
  --whsdarkblue: #1e3a63;
  --whsbluegray: #6c7a89;
  --whsoceanblue: #2a75bb;
  --whsyellowgold: #d4a017;
  --whsdarkgreen: #526b3a;
  --whspeach: #f7a58d;
  --whspalegreen: #b0c59b;
  --whsmutedred: #b36f6f;
  --whsdarkgray: #4a4a4a;
  --whslightgray: #d3d3d3;

  --bg-color: white;
  --text-color: black;
}

body.theme-dark {
  --bg-color: black;
  --text-color: white;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body.theme-light {
  --bg-color: white;
  --text-color: black;
  background-color: var(--bg-color);
  color: var(--text-color);
}


body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Overpass', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Layout Structure */
.layout-container {
  display: flex;
  flex: 1;
}

.left-space, .right-space {
  width: 5%;
}



/* Medium screens (tablet) */
@media (max-width: 1024px) {
  .left-space, .right-space {
    width: 2%;
  }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
  .left-space, .right-space {
    width: 0;
    display: none;
  }
}

.content-area {
  flex: 1;
  padding: 20px;
}

@media (max-width: 768px) {
  .content-area {
    padding: 0px;
  }
}

/* Buttons */
button {
  margin: 4px;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

/* Input Fixes */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  margin: 0;
}

/* Helpers */
.small-input {
  width: 50px;
  height: 22px;
  font-size: 14px;
  text-align: right;
  padding: 2px;
}

.small-text {
  font-size: small;
}

.icon-white {
  filter: invert(1);
}

.hidden {
  display: none !important;
}

.text-white {
  color: white !important;
}

.bg-black {
  background-color: black !important;
}

.highlight-red {
  color: var(--whsred);
  font-weight: bold;
}

.full-width {
  display: flex;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  align-items: center;
  margin-bottom: 5px;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.modal-content {
  background-color: #222;
  color: green;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  min-width: 300px;
  box-shadow: 0 0 10px #000;
}  

/* Utility: hide on mobile */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ----- Screen-specific visibility utilities ----- */

/* Default: all visible */
.show-on-pc,
.show-on-tablet,
.show-on-mobile {
    display: none !important;
}

/* PC only */
body.screen-pc .show-on-pc {
    display: block !important;
}

/* Tablet only */
body.screen-tablet .show-on-tablet {
    display: block !important;
}

/* Mobile only */
body.screen-mobile .show-on-mobile {
    display: block !important;
}

/* Hiding helpers */
body.screen-pc .hide-on-pc,
body.screen-tablet .hide-on-tablet,
body.screen-mobile .hide-on-mobile {
    display: none !important;
}

