/* Base layout */
a, a:visited, a:hover, a:active {
  color: white !important;
  font-weight: none !important;
  text-decoration: none;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 12px;
  font-family: Arial, sans-serif;
  background: url('images/bg.jpg');
  color: white;
  overflow: hidden;
  text-align: center;
}

/* Flex container for the frame */
.frame-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  gap: 0;
}

/* Navigation and stats columns */
.nav-column, .stats-column {
  background-color: #222;
  border: 1px solid black;
  width: 200px;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 20px;
  padding-left: 0;
  text-align: left;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px;
  overflow-y: auto;
  flex-shrink: 0;
  min-height: 0;
  color: white;
}

/* Navigation and Stats headers */
.nav-column > h2,
.stats-column > h2 {
  margin: 0;
  padding: 10px 12px;
  background-color: #002366;
  font-size: 14px;
  font-weight: bold;
  color: white;
  border-bottom: 1px solid #000000;
  border-radius: 8px 8px 0 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Navigation links */
.nav-column a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  display: block;
  margin: 0;
}

.nav-column a + a {
  margin-top: 4px;
}

.nav-column a.active,
.nav-column a:hover {
  background-color: #444;
}

/* Player stats list */
.stats-column ul {
  list-style: none;
  padding-left: 20px;
  margin: 0;
}

.stats-column li {
  margin-bottom: 6px;
}

/* Optional inbox link inside stats */
.stats-column a.inbox-link {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 10px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.stats-column a.inbox-link:hover,
.stats-column a.inbox-link.active {
  background-color: #444;
}

.new-mail {
  color: yellow;
  font-weight: bold;
  margin-top: 4px;
}

/* Main content area */
.main-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background: url('images/bg.jpg')
}

/* Heading styling for inside main content */
h2 {
  margin-top: 0;
  margin-bottom: 10px;
  background-color: #002366;
  padding: 10px;
  font-size: 12px;
  font-weight: normal;
  color: white;
  border-radius: 4px;
  text-align: center;
}

/* Buttons */
button {
  background-color: #555;
  border: none;
  color: white;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  margin: 4px 0;       
}

button:hover {
  background-color: #777;
}

button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* Crime box styling */
.crime-box {
  max-width: 600px;
  margin: 0 auto;
  background-color: #2a2a2a;
  padding: 0;
  border: 1px solid #000000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  color: white;
  overflow: hidden;
}

.crime-box h2 {
  margin: 0;
  padding: 10px 12px;
  background-color: #002366;
  font-size: 14px;
  font-weight: bold;
  color: white;
  border-bottom: 1px solid #000000;
  border-radius: 8px 8px 0 0;
  text-align: center;
}

.crime-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.crime-box th,
.crime-box td {
  padding: 1px;
  border: 1px solid #444;
  font-size: 12px;
  text-align: center;
  background-color: #2a2a2a;
}

.crime-box th {
  background-color: #000000;
  font-weight: bold;
}

.crime-box td {
  color: white;
}

/* Main content links */
.main-content a {
  text-decoration: none !important;
  color: #ffffff !important;
}

.main-content a:hover {
  text-decoration: underline !important;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .frame-container {
    flex-direction: column;
  }

  .nav-column,
  .stats-column {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    padding: 10px;
    gap: 10px;
    border: none;
  }

  .nav-column h2,
  .stats-column h2 {
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
  }

  .nav-column a {
    display: inline-block;
    margin: 4px 6px;
    font-size: 14px;
  }

  .stats-column ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
  }

  .stats-column li {
    margin: 0;
  }

  .main-content {
    order: 2;
    padding: 20px;
  }
}

h3 {
  margin: 0;
  padding: 5px 6px;
  background-color: #002366;
  font-size: 12px;
  font-weight: bold;
  color: white;
  border-bottom: 1px solid #000000;
          border-top: 1px solid #000000;
  border-radius: 8px 8px 0 0;
  text-align: center;
}
