/* Modern Simple Theme for HLstatsX:CE */
/* This theme enhances the existing layout without breaking it */

/* Color Variables */
:root {
  --primary: #2c3e50;
  --secondary: #34495e;
  --accent: #3498db;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
}

/* Body Background */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  background-attachment: fixed !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Main content blocks */
.block {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 20px;
}

/* Header specific styling */
.headerblock {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

/* Title area */
.headerblock .title {
  display: inline-block;
  vertical-align: middle;
}

.headerblock .title img {
  max-height: 50px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Header tabs (top navigation) */
.headertabs {
  float: right;
  margin: 0;
}

.headertabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.headertabs li {
  display: inline-block;
  margin-left: 10px;
}

.headertabs img {
  opacity: 0.8;
  transition: all 0.3s;
  max-height: 40px;
}

.headertabs img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Games list */
.header_gameslist {
  margin: 0;
  padding: 0;
  float: right;
  position: absolute;
  top: 0;
  right: 0;
}

ul#header_gameslist {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul#header_gameslist li {
  display: inline-block;
  padding: 0 10px;
  float: left;
}

ul#header_gameslist img {
  border-radius: 4px;
  transition: transform 0.3s;
}

ul#header_gameslist img:hover {
  transform: scale(1.1);
}

/* Location/Breadcrumb bar */
.location {
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  clear: both;
}

.location ul {
  margin: 0;
  padding: 0;
  float: left;
}

.location li {
  display: inline;
  color: #666;
}

.location a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.location a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.location .arrow {
  color: #999;
  margin: 0 5px;
}

/* Style selector */
#style_selection {
  float: right;
}

#style_selection select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

/* Main Navigation Menu */
nav {
  background: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.fancyNav {
  list-style: none;
  display: inline-block;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
}

.fancyNav li {
  float: left;
  list-style: none;
  margin: 0;
  position: relative;
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  border-right: 1px solid #d0d0d0;
}

.fancyNav li:hover {
  background: linear-gradient(to bottom, var(--accent), #2980b9);
}

.fancyNav li a {
  display: block;
  padding: 10px 20px;
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s;
}

.fancyNav li:hover a {
  color: white !important;
}

.fancyNav li:first-child {
  border-radius: 4px 0 0 4px;
}

.fancyNav li:last-child {
  border-radius: 0 4px 4px 0;
  border-right: none;
}

/* Content area */
.content {
  clear: both;
}

.content .block {
  background: white;
  padding: 20px;
}

/* Subblocks */
.subblock {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid #e9ecef;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

/* Data tables */
.data-table {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table-head td {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 10px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  border: none;
}

.data-table-head a {
  color: white !important;
  text-decoration: none;
}

.data-table-head a:hover {
  text-decoration: underline;
}

/* Table cells */
td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

th {
  background: var(--primary);
  color: white;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

/* Alternating row colors */
tr.bg1 { background: #ffffff; }
tr.bg2 { background: #f8f9fa; }

tr:hover td {
  background: #e3f2fd !important;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Forms */
input[type="text"],
input[type="password"],
select,
textarea {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input[type="submit"],
button {
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

input[type="submit"]:hover,
button:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Section headings */
.fHeading {
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.fHeading img {
  vertical-align: middle;
  margin-right: 5px;
}

/* Font sizes */
.fSmall {
  font-size: 11px;
}

.fNormal {
  font-size: 12px;
}

/* Footer */
#footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}

#footer img {
  opacity: 0.8;
  transition: opacity 0.3s;
}

#footer img:hover {
  opacity: 1;
}

/* Status colors */
.status-online { color: var(--success); }
.status-offline { color: #999; }

/* Alert/Warning boxes */
.warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 12px;
  margin: 15px 0;
  color: #856404;
}

.warning .warning-heading {
  font-size: 18px;
  font-weight: bold;
  color: #856404;
  margin-bottom: 5px;
}

/* Progress bars / meters */
meter {
  width: 100%;
  height: 16px;
  border-radius: 8px;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 2px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.pagination .current {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .headertabs {
    float: none;
    text-align: center;
    margin-top: 10px;
  }
  
  .header_gameslist {
    position: static;
    float: none;
    text-align: center;
    margin-top: 10px;
  }
  
  .location ul,
  #style_selection {
    float: none;
    display: block;
    text-align: center;
  }
  
  .fancyNav li {
    float: none;
    display: block;
    border-right: none;
    border-bottom: 1px solid #d0d0d0;
  }
  
  .fancyNav li:first-child {
    border-radius: 4px 4px 0 0;
  }
  
  .fancyNav li:last-child {
    border-radius: 0 0 4px 4px;
    border-bottom: none;
  }
}

/* Remove any conflicting styles that might break layout */
.fancyNav li:after {
  display: none !important;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Clean up any floating issues */
.clearfix:after,
.block:after,
.headerblock:after {
  content: "";
  display: table;
  clear: both;
}