/* =========================
   Shared Styles (v12.2)
   ========================= */

body {
  min-width: 710px;
  position: relative;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: #0b0b0b; /* dynamic bg image set inline from PHP if present */
  background-repeat:no-repeat; background-position:center center; background-attachment:fixed; background-size:cover;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* MODIFIED: Changed top and left from 10px to 15px */
#logo { position: absolute; top: 25px; left: 25px; width: 8em; height: auto; z-index: 2; }

input[type="Team" i] {
  height: 31px; width: 200px; margin-top: 20px; background-color: rgba(0, 0, 0, 0.65);
  border: 0px; border-radius: 6px; color: #FFFFFF; cursor: pointer; display: inline-block; font-size: 0.9em;
  font-family: roboto, sans-serif; font-weight: 400; line-height: 16px; outline: 0; text-align: center;
}

::placeholder { color: #cccccc; opacity: 1; }
::-ms-input-placeholder { color: #cccccc; }

#total-value, #Vall_m {
  background-color: rgba(0, 0, 0, 0.8); border-radius: 5px; width: 350px; color: white;
  font-size: 1.2em; font-weight: 600; margin-left: auto; margin-right: auto; padding: 10px;
}
#Vall_m { width: 250px; }

/* Stock card */
.stocks-item {
  display: flex; align-items: center; justify-content: space-between;
  text-align: left; margin: 10px; padding: 10px; border-radius: 5px; width: 370px;
  background-color: rgba(0, 0, 0, 0.65); font-size: 0.95em; font-weight: 700;
}
.stock-info { display: flex; flex-direction: column; gap: 4px; }
.stock-logo-wrap { display: flex; align-items: center; justify-content: center; width: 90px; min-height: 80px; }
.stocks-item img { max-width: 80px; max-height: 80px; height: auto; width: auto; }
.stocks-item img.realty { max-width: 150px; }

#year, #budget {
  background-color: rgba(0, 0, 0, 0.8); border-radius: 5px; color: #FFFFFF; cursor: pointer; display: inline-block;
  font-size: 1.2em; font-weight: 600; padding: 10px; width: 100px;
}
#budget { width: 300px; }

.buy-container { text-align: center; margin-top: 20px; }
.buy-table { margin: 0 auto; }
.two-butts { margin: 0 auto; margin-bottom: -40px; }

.buy-input {
  height: 31px; width: 120px; margin-top: 10px; background: #050505; border: 2px solid #4faf3a; border-radius: 6px;
  color: #FFFFFF; font-size: 0.9em; font-weight: 700; outline: 0; text-align: center;
}

/* Buttons */
.buy-button, .form-button {
  margin-top: 10px; height: 35px; padding: 0px 18px; background: #050505; border: 2px solid #4faf3a; border-radius: 6px;
  box-sizing: border-box; color: #FFFFFF; cursor: pointer; font-size: 0.9em; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
}
.buy-button { color: #4faf3c; }
.danger { border-color:#d9534f !important; color:#d9534f !important; }
.max-btn { height: 28px; padding: 0 8px; font-size: 12px; border-color:#888; margin-left: 6px; }

input[type="file"] { display: none; }
.file-label { display: inline-flex; align-items:center; justify-content:center; padding: 8px 12px; cursor: pointer; }

/* Holdings table */
#stocks-table { margin-top: 20px; width: 100%; margin-left: auto; margin-right: auto; border-collapse: collapse; }
#stocks-table th, #stocks-table td { background-color: rgba(0, 0, 0, 0.65); padding: 8px; text-align: center; color: #ffffff; font-size: 1.2em; }
#stocks-table td { padding: 13px; font-size: 1.07em; font-weight: 700; margin: auto; }
#stocks-table th { background-color: #050505; padding: 13px; }

/* Login overlay */
#password-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.92); display: flex; justify-content: center; align-items: center; z-index: 9999;
}
#password-container { background-color: #ffffff; padding: 22px 20px; border-radius: 8px; text-align: center; max-width: 360px; width: 92%; box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
#password-container h2 { margin: 0 0 14px; color: #333; font-size: 20px; }
#password-container input[type="text"], #password-container input[type="password"] {
  width: 88%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; color:#333;
}
#password-container button { padding: 10px 20px; border: none; background-color: #4CAF50; color: #fff; border-radius: 6px; cursor: pointer; font-weight: 700; }
#password-error { color: #d9534f; margin-top: 10px; }

/* Alerts */
.alert-box { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background-color: #4faf3c; color: white; padding: 15px; border-radius: 5px; z-index: 10000; box-shadow: 0 0 10px rgba(0,0,0,0.5); }

/* Admin panel styles */
.admin-wrap { max-width: 1100px; margin: 40px auto; background: rgba(0,0,0,0.6); padding: 20px; border-radius: 8px; }
.admin-title { font-size: 1.6em; margin-bottom: 10px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border: 1px solid rgba(255,255,255,0.15); padding: 10px; }
.admin-logo-preview { display:flex; align-items:center; justify-content:center; min-height: 70px; }
.admin-logo-preview img { max-height: 70px; max-width: 120px; }
.admin-actions { display:flex; gap: 10px; justify-content:center; margin-top: 20px; flex-wrap: wrap; }
.center { text-align:center; }

/* Bottom admin open button container */
.bottom-actions { margin: 24px 0 8px; }

/* Version line */
#version-line { margin: 12px 0 0; font-size: 12px; color: #bbb; }

/* Wide promo banner (game page only; color set inline) */
#bannerDiv { width: 100%; min-height: 180px; display:flex; align-items:center; justify-content:center; padding: 0; }
#bannerDiv img { width: 100%; height: 180px; object-fit: cover; display:block; }

/* Preview helpers */
.preview-note { font-size: 12px; color:#ddd; margin-top:6px; opacity:.9; }
.inline-preview { margin-top:6px; max-height:70px; display:block; margin-left:auto; margin-right:auto; }