/* General Styles */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h2{
    margin-top: 5px;
    margin-bottom: 5px;
}

/* App Layout */
.app {
    flex: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background-color: #273449;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: width 0.3s ease;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

html.sidebar-collapsed .sidebar {
    width: 45px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    padding-left: 0;
    cursor: pointer;
    text-decoration: none;
}

html.sidebar-collapsed .sidebar .logo {
    opacity: 0;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar nav ul li {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.sidebar nav ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.sidebar-collapsed .sidebar nav ul li a span {
    display: none;
}

.sidebar nav ul li a:hover {
    color: #ffffff;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding-inline: 0;
}

/* Game section title */
.game-section {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.game-section-title {
    color: #aab2bd;
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 10px;
    height: 24px;
    display: flex;
    align-items: center;
}

/* Default game title text */
.game-title-text {
    display: inline;
    color: #aab2bd;
}

/* Collapsed: hide "Games" text and show 🎮 */
html.sidebar-collapsed .sidebar .game-title-text {
    color: transparent;
    font-size: 20px;
}

html.sidebar-collapsed .sidebar .game-title-text::before {
    content: "🎮";
    position: absolute;
    left: 6.5px;
    color: #aab2bd;
}

/* Game links */
.sidebar .game-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .game-links li {
    margin: 10px 0;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.sidebar .game-links li a {
    font-size: 14px;
}

/* Additional styling */
.money {
    padding-top: 30px;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-top: 60px;
    margin-left: 200px;
    margin-bottom: 60px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

html.sidebar-collapsed .main-content {
    margin-left: 45px;
}

html.sidebar-collapsed .game-links li{
    padding-left: 0;
}

html.sidebar-collapsed .top-bar {
    left: 45px;
    width: calc(100% - 45px);
}

html.sidebar-collapsed .game-links {
    font-size: 16px;
}

/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 200px; /* Matches the default sidebar width */
    width: calc(100% - 200px); /* Adjust width to account for the sidebar */
    height: 60px;
    background-color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Ensure it stays above other content */
    transition: left 0.3s ease, width 0.3s ease;
}

.credit-display {
    font-weight: bold;
    color: #10b981;
    margin-right: 0; /* Push it closer to the left */
    padding-right: 40px; /* Optional: Adjust spacing from the edge */
}

.dept-display {
    font-weight: bold;
    color: red;
    margin-right: auto;
    z-index: 1100; 
    padding-top: 7px;
}

/* Update Styles */

.update-date{
    font-size: 12px;
}

.version{
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1e293b;
    color: #94a3b8;
    font-size: 14px;
    transition: margin-left 0.3s ease;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    z-index: 1099;
}

footer a {
    color: #38bdf8;
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Sidebar */
.sidebar-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #273449; /* new blue */
  display: block;
  justify-content: center;
  padding: 12px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.sidebar-mobile nav ul {
  display: flex;
  justify-content: space-evenly; /* evenly spread items */
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-mobile nav ul li {
  flex: 1;
  text-align: center;
}

.sidebar-mobile nav ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  flex-direction: column; /* icon above text */
  align-items: center;
  gap: 8px; /* more space between icon and text */
  padding: 0;
}

.sidebar-mobile nav ul li a:hover {
  color: white;
}


@media (min-width: 768px) {
  .sidebar-mobile {
    display: none;
  }

}
