/* Valorium Highscores - Condensed and Optimized CSS with Mobile Fixes */

/* Fonts */
@font-face { font-family: "OpenSans-Light"; src: url('../fonts/OpenSans-Light.ttf'); }
@font-face { font-family: "OpenSans-Regular"; src: url('../fonts/OpenSans-Regular.ttf'); }
@font-face { font-family: "Oswald"; src: url('../fonts/Oswald-Regular.ttf'); }
@font-face { font-family: "Oswald-Light"; src: url('../fonts/Oswald-ExtraLight.ttf'); }

/* Base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: #efefef;
  background: #121821 url('../img/background.webp') top center no-repeat;
  background-size: contain;
  font-family: 'Oswald', sans-serif;
  overflow-x: hidden;
}

#wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  z-index: -1;
}

/* Header */
.custom-header {
  background: linear-gradient(90deg, #0f2027, #ff512f, #dd2476);
  color: white;
  padding: 0.4rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.custom-header .navbar-brand img {
  max-width: 120px;
  height: auto;
  margin-top: -2px;
}

.custom-header .nav-link {
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  font-size: 15px;
  color: #eee !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.custom-header .nav-link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 12px rgba(255, 77, 77, 0.8);
}

@media (max-width: 768px) {
  .custom-header .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Layout */
.layout {
  display: flex;
  flex-wrap: nowrap;
}

@media (max-width: 991px) {
  .layout {
    flex-direction: column;
  }
}

.main-content {
  flex: 1;
  padding: 1rem;
  max-width: 100%;
  overflow-x: auto;
}

/* Pagination + Skill Title */
.page-btns {
  padding: 10px 0;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.skill-title {
  font-size: 24px;
  vertical-align: baseline;
}

.skill-title img {
  vertical-align: baseline;
  max-height: 18px;
}

.btn-default {
  background-color: #131313;
  font-size: 12px;
  color: #AAA;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease-in-out;
  margin: 3px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.01) inset, 0 0 10px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.5);
}

.btn-default:hover, .btn-default:focus {
  color: #FFF;
  border-top: solid 1px #AAA;
  border-bottom: solid 1px #AAA;
}

/* Sidebar */
.sidebar-left,
.sidebar-right {
  background: #1b2733;
  padding: 1rem;
  border: 2px solid #333;
}

.sidebar-left {
  width: 200px;
  border-right: 2px solid #333;
}

.sidebar-right {
  width: 350px;
  border-left: 2px solid #333;
}

.sidebar-left ul,
.sidebar-right ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-left li,
.sidebar-right li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
}

.sidebar-left a {
  color: #efefef;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar-left a:hover {
  color: #ff4d4d;
  text-decoration: underline;
}

.sidebar-left img {
  height: 20px;
  margin-right: 6px;
}

@media (max-width: 767.98px) {
  .sidebar-left {
    display: none !important;
  }
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  z-index: 1050;
  overflow-y: auto;
  transition: left 0.3s ease;
  background: #1b2733;
  color: #eee;
}

.mobile-sidebar.open {
  left: 0;
}

/* Filters / Selects */
.modes-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sidebar-left select,
#mobileSkillsSidebar select {
  background: #0f1b2b;
  border: 1px solid #444;
  color: #eee;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  max-width: 220px;
  appearance: none;
}

.sidebar-left option,
#mobileSkillsSidebar option {
  background-color: #1b2733;
  color: #eee;
}

/* Forms */
.dark-input {
  background-color: #0d1a26;
  color: #eee;
  border: 1px solid #444;
  border-radius: 5px;
}
.dark-input::placeholder {
  color: #bbb;
}
.dark-input:focus {
  background-color: #1a2a38;
  color: #fff;
  border-color: #ff4d4d;
  box-shadow: 0 0 0 0.2rem rgba(255, 77, 77, 0.25);
}

/* Toggle Button Styling */
.toggle-search-btn {
  background-color: #111; /* Dark background */
  color: #eee;
  border: 2px solid #222;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.toggle-search-btn:hover {
  background-color: #ff4d00;
  border-color: #ff4d00;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Search Box Container */
#search-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Inputs & Buttons */
#search-container input {
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

#search-container input::placeholder {
  color: #bbb;
}

#search-container .btn-primary {
  background-color: #ff4d00;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

#search-container .btn-primary:hover {
  background-color: #ff3300;
}

/* Responsive Flex */
@media (min-width: 768px) {
  #search-container .searchUser {
    gap: 0.5rem;
    align-items: flex-end;
  }
}


.searchUser {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.searchUser input[type="text"],
.searchUser button {
  max-width: 220px;
  font-size: 14px;
  border-radius: 4px;
  flex: 1 1 auto;
}

.searchUser input[type="text"] {
  background-color: #1b2733;
  color: #eee;
  border: 1px solid #444;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.searchUser button {
  background-color: #131313;
  color: #efefef;
  border: 1px solid #666;
  padding: 6px 10px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.searchUser button:hover {
  background-color: #3a3a3a;
  cursor: pointer;
}

/* Fix placeholder color visibility */
.searchUser input::placeholder,
.searchUser input::-webkit-input-placeholder {
  color: #ccc;
  opacity: 1;
}

.searchUser input:-ms-input-placeholder {
  color: #ccc;
}

.searchUser input::-ms-input-placeholder {
  color: #ccc;
}

/* Table */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  table-layout: auto;
  min-width: 700px;
}

.table-dark {
  background-color: #2b2f33;
}

.donor-icon {
  height: 20px;
}

.table .progress {
    background-color: #222 !important;
    border-radius: 0 !important;
    border: solid 1px #333 !important;
    box-shadow: inset 0 0 3px #111 !important;
    margin: 0 !important;
    position: relative !important;
}

.table .percent {
    position: absolute !important;
    width: 100% !important;
    text-align: center !important;
    text-shadow: 1px 1px 1px #000 !important;
    font-size: 12px !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
}

.table .progress-bar {
    height: 100% !important;
    background-color: #3a3a3a !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Footer */
  .footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2px;
  }

  .footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0%;
    background-color: #ffa07a;
    transition: width 0.3s ease-in-out;
  }

  .footer-link:hover {
    color: #ffd9c4;
    transform: translateX(3px);
  }

  .footer-link:hover::after {
    width: 100%;
  }

/* Animations */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animated-background {
  background-image: url('/data/images/banner2.gif');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}