/* Base */
html {
  background-color: #f5f7fa;
  color: #333;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  font-size: 16px;
  min-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.darkmode {
  background-color: #333;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

a {
  font-family: "Poppins", sans-serif;
  color: rgb(22, 34, 114);
  text-decoration: none;
  transition: all 0.25s ease;
}
a:hover {
  color: #4a5dd3;
  text-decoration: none;
}
a:active {
  opacity: 0.8;
  text-decoration: none;
}

/* The fixed Side */
.side {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: 50px;
  border-right: 1px dashed rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.5);
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.0875rem;
  font-size: 10px;
  transition: all 0.25s ease;
}
.side:hover {
  color: rgba(0, 0, 0, 0.5);
}
.side .side__inner {
  position: relative;
  height: 100%;
  white-space: nowrap;
}
.side a {
  color: inherit;
  word-spacing: 0;
  transition: all 0.25s ease;
}
.side .top,
.side .bottom {
  position: absolute;
  left: 0;
  transform: rotate(-90deg) perspective(1px);
  transform-origin: 50px 50px;
  height: 50px;
  line-height: 50px;
  white-space: nowrap;
  word-spacing: 0.5rem;
}
.side .top {
  top: 66px;
  text-align: right;
  color: black;
}
.side .bottom {
  top: auto;
  bottom: 72px;
}
.side .bottom:hover a {
  color: rgba(0, 0, 0, 0.2);
}
.side .bottom:hover a:hover {
  color: rgba(0, 0, 0, 0.8);
}

/* The first navigation */
.anchornav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.anchornav li {
  display: block;
}
.anchornav li::after {
  content: "";
  width: 1.3rem;
  display: block;
  height: 2px;
  background: black;
}
.anchornav li:last-child::after {
  display: none;
}
.anchornav a {
  display: block;
  padding: 1em 0;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: inherit;
  transition: all 0.25s ease;
}
.anchornav a span {
  display: inline;
  padding: 0.5em 0 0;
  opacity: 0.3;
  letter-spacing: normal;
  font-family: "ff-meta-serif-web-pro", serif;
  text-transform: none;
}
.anchornav a:hover {
  color: rgb(22, 34, 114);
}
.anchornav a:hover span {
  opacity: 1;
  color: #181818;
}

/* The different sections */
.section {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  min-height: calc(100vh - 110px);
  width: 100%;
  padding: 2rem;
}
.section .section__inner {
  max-width: 97%;
  margin: 0;
  padding: 1.2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.section.section--about {
  background-color: #f5f7fa;
  color: #333;
  justify-content: flex-start;
  align-items: center;
}
.section .block {
  margin-bottom: 2.5rem;
  text-align: left;
}

/* Desktop/Tablet Styles - Ensure desktop behavior is preserved */
@media (min-width: 769px) {
  .app-header {
    padding: 1rem 2rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .app-header .header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .app-header .header-left .app-title-link {
    color: inherit;
    text-decoration: none;
  }
  .app-header .header-left .app-title-link:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
  }
  .app-header .header-left .app-title {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .app-header .header-left .client-info {
    display: block;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    padding-top: 0;
    text-align: left;
  }
  .app-header .header-left .client-info .client-id-name {
    font-size: 0.9rem;
  }
  .app-header .header-links {
    display: flex;
    gap: 1.5rem;
  }
  .app-header .header-links a {
    font-size: 1rem;
  }
  /* Hide header links on login page for desktop/tablet */
  .login-page .app-header .header-links {
    display: none;
  }
  .section {
    padding: 2rem;
    min-height: calc(100vh - 110px);
  }
  .section .section__inner {
    max-width: 97%;
    padding: 1.2rem;
  }
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .section {
    padding: 0;
    min-height: calc(100vh - 80px);
  }
  .section .section__inner {
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    margin: 1rem 1rem 0 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-sizing: border-box;
  }
  .app-header {
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    flex-direction: row;
    justify-content: center;
    box-sizing: border-box;
    height: auto;
    /* Hide header search on mobile */
    /* Hide dropdown on mobile */
    /* Hide version button on mobile (backup rule) */
    /* Hide any remaining client info elements */
  }
  .app-header .header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
  }
  .app-header .header-left .app-title-link {
    color: inherit;
    text-decoration: none;
  }
  .app-header .header-left .app-title-link:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
  }
  .app-header .header-left .app-title {
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: auto;
    line-height: normal;
  }
  .app-header .header-left .app-title i {
    font-size: 1.4rem;
  }
  .app-header .header-left .client-info {
    display: none; /* Hide client info on mobile */
  }
  .app-header .header-links {
    display: none; /* Hide header links on mobile */
    /* Specifically hide all header link elements */
  }
  .app-header .header-links a[title="Podium des techs"] {
    display: none; /* Hide tech button */
  }
  .app-header .header-links .version-btn {
    display: none; /* Hide version button */
  }
  .app-header .header-search {
    display: none;
  }
  .app-header .dropdown {
    display: none;
  }
  .app-header .version-btn {
    display: none;
  }
  .app-header .client-info,
  .app-header .client-id-name {
    display: none !important;
  }
  /* Typography mobile adjustments */
  h1,
  .h1 {
    font-size: 1.5rem;
  }
  h2,
  .h2 {
    font-size: 1.25rem;
  }
  h3,
  .h3 {
    font-size: 1.1rem;
  }
  /* Button mobile adjustments */
  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  .btn i {
    font-size: 1rem;
  }
  /* Form mobile adjustments */
  input,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.8rem 1rem;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 0;
  }
  .section .section__inner {
    width: calc(100% - 1.5rem);
    max-width: calc(100% - 1.5rem);
    margin: 0.75rem 0.75rem 0 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    box-sizing: border-box;
  }
  .app-header {
    width: 100%;
    margin: 0;
    padding: 0.8rem 0;
  }
  .app-header .header-left .app-title-link {
    color: inherit;
    text-decoration: none;
  }
  .app-header .header-left .app-title-link:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
  }
  .app-header .header-left .app-title {
    font-size: 1.1rem;
  }
  .app-header .header-left .app-title i {
    font-size: 1.2rem;
  }
  .app-header .header-links,
  .app-header .header-search,
  .app-header .dropdown,
  .app-header .version-btn {
    display: none;
  }
  h1,
  .h1 {
    font-size: 1.25rem;
  }
  h2,
  .h2 {
    font-size: 1.1rem;
  }
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}
/* Typo */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.3;
  color: rgb(22, 34, 114);
  letter-spacing: -0.01em;
}

h1,
.h1 {
  font-size: 2rem;
}

h2,
.h2 {
  font-size: 1.5rem;
}
h2 i,
.h2 i {
  font-size: 1.25rem;
}

h3,
.h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: rgb(22, 34, 114);
}
h3 i,
.h3 i {
  font-size: 1.2rem;
}

.pre {
  display: inline-block;
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: inherit;
}
.pre span {
  font-size: 0.9em;
  margin-right: 0.4em;
  opacity: 0.5;
}
.pre:hover {
  opacity: 1;
}

p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #666;
}

.lead {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  font-weight: 300;
}

div {
  font-family: "Poppins", sans-serif;
}

/* Text Forms */
input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1rem;
  display: block;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s;
}
input:focus,
select:focus {
  outline: none;
  border-color: rgb(22, 34, 114);
  box-shadow: 0 0 0 2px rgba(22, 34, 114, 0.2);
}

/* Loading Button */
.btn {
  background: rgb(22, 34, 114);
  border: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  padding: 0.75rem 1rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
}
.btn i {
  font-size: 1.1rem;
}
.btn:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn:disabled, .btn.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #666;
}
.btn.btn-full {
  width: 100%;
}
.btn.btn-secondary {
  background: #4a5dd3;
}
.btn.btn-outline {
  background: transparent;
  border: 1px solid rgb(22, 34, 114);
  color: rgb(22, 34, 114);
}
.btn.btn-outline:hover {
  background: rgba(22, 34, 114, 0.05);
}
.btn.btn-light {
  background: #fff;
  color: rgb(22, 34, 114);
  border: 1px solid #e0e0e0;
}
.btn.btn-light:hover {
  background: #f5f5f5;
}
.btn.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn__text {
  color: inherit;
  transition: all 0.2s;
}

.btn--loading .btn__text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
}

.btn--loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-loading-spinner 1s ease infinite;
}

@keyframes btn-loading-spinner {
  from {
    transform: translate(-50%, -50%) rotate(0turn);
  }
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}
/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  background: white;
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: block;
}

th,
td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

th {
  background-color: rgb(22, 34, 114);
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: rgba(22, 34, 114, 0.025);
}

/* Code Blocks */
.code-box {
  position: fixed;
  top: 20px;
  right: 30px;
  width: calc(100% - 20px);
  max-width: 700px;
  height: calc(100% - 20px);
  max-height: 900px;
  background-color: rgba(48, 119, 255, 0.8156862745);
  overflow: auto;
  padding: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 14px;
}

.code-box pre {
  margin: 0;
  color: white;
}

/* Popup */
.popup {
  position: relative;
  cursor: pointer;
  margin-left: 10px;
  margin-right: 10px;
  font-style: italic;
}

.popup .popuptext {
  visibility: hidden;
  width: max-content;
  background-color: #555;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 1;
  left: 20%;
  bottom: 125%;
  align-content: center;
  font-style: normal;
}

.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* New button
.button-27 {
	appearance: none;
	background-color: #000000;
	border: 2px solid #1A1A1A;
	border-radius: 15px;
	box-sizing: border-box;
	color: #FFFFFF;
	cursor: pointer;
	display: inline-block;
	font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	margin: 0;
	min-height: 60px;
	min-width: 0;
	outline: none;
	padding: 16px 24px;
	text-align: center;
	text-decoration: none;
	transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	width: 100%;
	will-change: transform;
}
.button-27:disabled {
	pointer-events: none;
}
.button-27:hover {
	box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
	transform: translateY(-2px);
}
.button-27:active {
	box-shadow: none;
	transform: translateY(0);
}
*/
/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgb(22, 34, 114);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.app-header .header-left {
  display: flex;
  align-items: center;
}
.app-header .header-left .app-title-link {
  color: inherit;
  text-decoration: none;
}
.app-header .header-left .app-title-link:hover {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}
.app-header .header-left .app-title {
  color: white;
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
}
.app-header .header-left .app-title i {
  margin-right: 0.5rem;
  font-size: 1.2em;
}
.app-header .header-left .client-info {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.app-header .header-left .client-info .client-id-name {
  color: white;
  opacity: 0.9;
  font-size: 0.9rem;
}
.app-header .header-links {
  display: flex;
  gap: 1.5rem;
}
.app-header .header-links a {
  color: white;
  opacity: 0.85;
  font-weight: 500;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}
.app-header .header-links a i {
  margin-right: 0.5rem;
}
.app-header .header-links a:hover {
  opacity: 1;
  color: white;
}
.app-header .header-links a:visited {
  color: white;
}

/* Forms */
.search-form {
  margin: 2rem 0;
}
.search-form form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-control {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.submenu-form {
  margin-bottom: 2rem;
}

/* Footer */
.app-footer {
  margin-top: auto;
  padding: 1rem;
  background: rgb(22, 34, 114);
  color: white;
  text-align: center;
  font-size: 0.875rem;
}
.app-footer p {
  color: white;
  margin: 0;
}
.app-footer a {
  color: white;
  text-decoration: underline;
}

/* Login Page */
.login-container {
  max-width: 450px !important;
}

.text-center {
  text-align: center;
}

.login-form {
  margin-top: 2rem;
}
.login-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #333;
}

.btn-full {
  width: 100%;
}

/* Login Mobile Responsive */
@media (max-width: 768px) {
  .login-container {
    width: calc(100% - 2rem) !important;
    max-width: calc(100% - 2rem) !important;
    margin: 1rem 1rem 0 1rem !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    box-sizing: border-box;
  }
}
@media (max-width: 480px) {
  .login-container {
    width: calc(100% - 1.5rem) !important;
    max-width: calc(100% - 1.5rem) !important;
    margin: 0.75rem 0.75rem 0 0.75rem !important;
    padding: 1.25rem !important;
    border-radius: 8px !important;
    box-sizing: border-box;
  }
  .login-form {
    margin-top: 1.5rem;
  }
}
/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert i {
  font-size: 1.25rem;
}
.alert.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.alert.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.alert.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.alert.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Tech Podium Table */
.tech-podium-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}

.tech-podium-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.tech-podium-table thead th {
  background-color: rgb(22, 34, 114);
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
}
.tech-podium-table tbody td {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.tech-podium-table tbody tr:last-child td {
  border-bottom: none;
}
.tech-podium-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}
.tech-podium-table .rank-1 {
  /* API Metrics */
  background-color: rgba(0, 0, 0, 0.08);
  color: #333;
}
.tech-podium-table .rank-2 {
  /* Tricheur */
  background-color: rgba(0, 0, 0, 0.08);
  color: #333;
}
.tech-podium-table .rank-3 {
  /* Gold */
  background-color: rgba(255, 215, 0, 0.2);
  font-weight: 600;
}
.tech-podium-table .rank-4 {
  /* Silver */
  background-color: rgba(192, 192, 192, 0.2);
  font-weight: 600;
}
.tech-podium-table .rank-5 {
  /* Bronze */
  background-color: rgba(205, 127, 50, 0.2);
  font-weight: 600;
}
.tech-podium-table .current-user {
  font-weight: 700;
  background-color: rgba(22, 34, 114, 0.08);
}