
@font-face {
  font-family: 'FutureBuglerUpright';
  src: url('../fonts/FutureBuglerUprightW00-Bd.ttf') format('truetype');
  font-weight: 400; /* Regular */
  font-style: normal;
}
/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.fom-pay .position-absolute{
  font-size: 10px;
  display: flex;
  text-align: center;
  color: #484848;
  font-weight: bold;
}
/* Button styled as link for player add */
.btn-add-player {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-add-player:hover {
  opacity: 0.8;
}

.btn-add-player:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


img.player.size-5 {
    width: 50px;
}
img.team.size-3 {
    width: 40px;
}
body {
    color:black
}
.p-card .card-bg { 
  max-height: 160px;
}
/* Card chung */
.shadow {
border-radius: 12px;
border: 1px solid rgba(255, 215, 0, 0.3);
color: #c9a74a;
}

/* Tiêu đề trong card */
.shadow .mb-2 {
color: #fff;
font-size: 14px;
text-transform: uppercase;
border-bottom: 1px solid #c9a74a;
padding-bottom: 2px;
margin-bottom: 8px !important;
}
.p-card .fom-name {
font-size: 8px;
}
/* Font số liệu */
.font-weight-bold {
font-size: 18px;
font-weight: 600;
color: #c9a74a;
}

/* Cờ giá trị */
.price-flag {
    width: 32px;
    height: 19px;
    margin-right: 6px;
    border-radius: 2px;
    float: left;
    margin-top: 8px;
    margin-left: 30px;
}

/* Progress bar */
.progress {
background-color: #dcdcdc;
height: 18px;
border-radius: 8px;
}

.progress-bar {
border-radius: 8px;
}

/* Layout tổng */
.progress-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1b1d27;
  border-radius: 8px;
  color: #fff;
  font-family: sans-serif;
  position: relative;
}

.progress-wrap label {
  width: 40px;
  font-weight: bold;
  font-size: 16px;
  color: #f1f1f1;
  text-align: left;
}

.progress-wrap progress {
  flex: 1;
  margin: 0 10px;
  height: 14px;
  border-radius: 8px;
  background-color: #dcdcdc;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

/* Style cho phần thanh đầy */
progress::-webkit-progress-bar {
  background-color: #d9d9d9;
  border-radius: 8px;
}
progress::-webkit-progress-value {
  border-radius: 8px;
  transition: width 0.6s ease;
}
progress::-moz-progress-bar {
  border-radius: 8px;
  transition: width 0.6s ease;
}

/* Màu riêng cho từng loại */
.total_fw {
  color: #e74c3c;
}
#fw-progress::-webkit-progress-value {
  background-color: #e74c3c;
}

.total_mf {
  color: #a9dc4f;
}
#mf-progress::-webkit-progress-value {
  background-color: #a9dc4f;
}

.total_df {
  color: #4a6ef5;
}
#df-progress::-webkit-progress-value {
  background-color: #4a6ef5;
}

.progress-wrap .value {
  width: 40px;
  text-align: right;
  font-weight: bold;
  font-size: 14px;
}


/* Màu cho từng bar */
.progress-bar-fw {
background-color: #e53935 !important; /* đỏ */
}
.progress-bar-mf {
background-color: #8bc34a !important; /* xanh lá */
}
.progress-bar-df {
background-color: #3f51b5 !important; /* xanh dương */
}

/* Text trên progress */
.progress b {
font-size: 13px;
}
/* Nút dropdown */
.btn.dropdown-toggle,
.btn-show-dropdown,
.box-salary {
background: #1a1d29 !important;
border: 1px solid rgba(255, 215, 0, 0.3) !important;
border-radius: 10px !important;
color: #fff !important;
font-weight: 500;
padding: 6px 14px;
}

/* Khi hover */
.btn.dropdown-toggle:hover,
.btn-show-dropdown:hover {
background: #222633 !important;
}
.fo-level a {
  font-size: 12px;
}
/* Text vàng cho số liệu */
.font-weight-bold,
.col-lg-9 span,
.col-lg-9 b {
color: #c9a74a !important;  /* vàng */
font-weight: 600;
}

/* Fix khoảng cách giữa các ô */
.col-lg-9 > * {
margin-right: 20px;
}

.col-lg-9 > *:last-child {
margin-right: 0;
}

.team-box {
    border-radius: 12px;
    overflow: hidden;
    font-family: sans-serif;
    position: relative;
    width: 345px;
}

.team-title {
text-align: center;
color: #c9a74a;
font-weight: 700;
margin-bottom: 8px;
text-transform: uppercase;
}

.team-table {
width: 100%;
border-collapse: collapse;
background: #11141f;
}

.team-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(to bottom, #caa64c, #8d6d2c);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 8px 12px;
    font-size: 12px;
}

.team-table tbody td {
padding: 8px 12px;
border-bottom: 1px solid rgba(201,167,74,0.4);
color: #fff;
font-size: 12px;
text-align: left;
}

.team-table tbody td.highlight {
color: #c9a74a;
font-weight: 600;
}

.team-table .flag {
width: 16px;
height: 12px;
margin-right: 4px;
}

.team-table .badge {
width: 24px;
height: 16px;
margin-right: 6px;
}

.substitute {
    background: #1a1d29;
    padding: 10px 12px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: inherit !important;
    font-size: 12px;
}
.team-box { 
  border-radius: inherit !important;
}

.table-wrapper {
    max-height: 400px;         /* chiều cao tối đa khung bảng */
    overflow-y: auto;          /* bật scroll dọc */
    overflow-x: hidden;
}

.team-table {
width: 100%;
border-collapse: collapse;
background: #11141f;
}

.alert-info {
background-color: #1d1e25;   /* nền tối */
border: 1px solid #c6a55d;  /* viền vàng nhạt */
color: #e4e4e4;             /* chữ trắng xám */
border-radius: 8px;         /* bo góc */
padding: 20px;
}

/* Tiêu đề HƯỚNG DẪN */
.alert-info h6 {
color: #c6a55d;             /* vàng nhạt */
font-weight: 700;
text-transform: uppercase;
margin-bottom: 15px;
}

/* Nút đóng X */
.alert-info .close {
color: #fff;
opacity: 0.8;
font-size: 20px;
}
.alert-info .close:hover {
opacity: 1;
}

/* Danh sách */
.alert-info ul {
margin: 0;
padding-left: 20px;
}
.alert-info li {
margin-bottom: 8px;
line-height: 1.5;
}
.team-table tbody td {
padding: 8px 12px;
border-bottom: 1px solid rgba(201,167,74,0.4);
color: #fff;
font-size: 14px;
white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.team-table tbody td.highlight {
color: #c9a74a;
font-weight: 600;
}

.team-table .flag {
width: 16px;
height: 12px;
margin-right: 4px;
}

.team-table .badge {
width: 24px;
height: 16px;
margin-right: 6px;
}

/* .grade {
display: inline-block;
background: #222633;
padding: 2px 8px;
border-radius: 4px;
font-weight: 600;
color: #fff;
} */

.table-wrapper {
    max-height: 500px;   /* cố định chiều cao 300px */
    overflow-y: auto;    /* bật scroll dọc */
}
.dropdown-menu.dropdown-menu-full {
width: 1000px;
}
.color-white {
color: #fff;
}
.custom-box {
background-color: #1c1d27; /* nền tối */
border-radius: 12px;
box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); /* viền vàng nhạt */
}
.club-info-card {
    display: flex;
}
.progress-wrap {
display: flex;
align-items: center;
}

.progress-wrap .label {
width: 40px;
color: #fff;
font-weight: bold;
}

.progress {
flex: 1;
background-color: #ddd;
border-radius: 8px;
height: 14px;
overflow: hidden;
position: relative;
}

.progress-bar {
height: 100%;
border-radius: 8px;
}

.progress-bar.fw {
background-color: #e74c3c; /* đỏ */
}

.progress-bar.mf {
background-color: #bada55; /* xanh lá nhạt */
}

.progress-bar.df {
background-color: #3377ff; /* xanh dương */
}
.mainwidth {
max-width: 1200px;
}

.title {
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}
.box-build-person  .row{ 
  margin: 0px;
}
.custom-box { 
    width: 510px;
    /* height: 125px; */
}

.box-info {
  width: 150px;
  margin-left: 15px;
}
.box-info .shadow { 
    height: 130px;
}
.box-info .font-weight-bold {
    margin-top: 10px;
    position: relative;
}
.box-salary,
.text-team {
    width: 227px;
    height: 51px;
}
.btn-show-dropdown {
    width: 88px;
    height: 51px;
}
.mt-20 {
    margin-top: 20px;
}
.box-select-build {
    margin-left: 100px;
}

.team-box {
    background-color: #000;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 365px;
    font-family: "Roboto", sans-serif;
  }
  
  .team-title {
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid #2a2a2a;
    background: linear-gradient(to bottom, #8c7630, #3c2f0e);
    color: #fff;
    letter-spacing: 0.5px;
  }
  
  .table-wrapper {
    overflow-x: auto;
  }
  
  .team-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 13px;
  }
  
  .team-table thead {
    background: linear-gradient(to bottom, #b28b43, #4d3a14);
    color: #fff;
  }
  p.value {
    position: absolute;
    right: 15px;
    top: 6px;
    color: #000;
    font-weight: bold;
  }
  .team-table th {
    padding: 10px 6px;
    border-bottom: 1px solid #2f2f2f;
    text-align: center;
  }
  
  /* độ rộng từng cột */
  .team-table th.pos,
  .team-table td.pos {
    width: 12%;
  }
  
  .team-table th.name,
  .team-table td.name {
    width: 46%;
    text-align: left;
    padding-left: 12px;
  }
  
  .team-table th.salary,
  .team-table td.salary {
    width: 14%;
  }
  
  .team-table th.ovr,
  .team-table td.ovr {
    width: 14%;
    font-weight: 600;
  }
  
  .team-table th.grade,
  .team-table td.grade {
    width: 14%;
  }
  
  .team-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #2f2f2f;
  }
  
  .team-table img.badge {
    width: 22px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 3px;
    display: inline-block;
  }
  
  .team-table .grade span {
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    color: #d1d1d1;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
  }
  
  .substitute {
    background-color: #1a1a1a;
    text-align: left;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    color: #bfbfbf;
    border-top: 1px solid #2a2a2a;
  }
.text-logo {
  color: rgba(118, 118, 118, 1);
  font-size: 24px;
  position: absolute;
  bottom: 0px;
  right: 40%;
  font-family: 'FutureBuglerUpright', sans-serif;
  font-weight: 400;
}
.box-info .mt-30 {
  margin-top: 30px;
}

@media (min-width: 1300px) { 
  p.price-vn,
  p.price-kr {
    position: absolute;
    right: -120px;
    margin-top: 5px;
    width: 300px;
  }
  p.price-kr { 
    margin-top: 32px;
  }
  #mainlayout {
    max-width: 1440px;
    padding-left: 0px;
  }
}
@media (min-width: 767px) and (max-width: 1200px) {
  .mainwidth {
    width: 900px;
  }
  p.price-vn,
  p.price-kr {
    position: absolute;
    right: 15px;
    margin-top: 2px;
  }
  p.price-kr { 
    margin-top: 20px;
  }
  .box-build-person {
    width: 100%;
  }
  .title { 
    font-size: 15px;
  }
  .custom-box {
    width: 340px;
    height: 75px;
  }
  .box-info .shadow {
    height: 75px;
  }
  .box-info {
    width: 91px;
    margin-left: 10px;
  }
  .box-info .shadow .mb-2 { 
    font-size: 10px;
  }
  .price-flag {
    width: 19px;
    height: 13px;
    margin-right: 6px;
    border-radius: 2px;
    float: left;
    margin-top: 5px;
    margin-left: 25px;
  }
  .box-info .font-weight-bold {
    margin-top: -5px;
    line-height: 20px;
  }
  .box-info .mt-30 {
    margin-top: 10px;
  }
  .team-box { 
    width: 241px;
  }
  .col-lg-3 {
    width: 241px;
  }
  .text-logo { 
    font-size: 14px;
    height: 30px;
    line-height: 30px;
  }
  .font-weight-bold { 
    font-size: 13px;
  }
  .box-salary, .text-team {
    width: 136px;
    height: 30px;
  }
  .btn-show-dropdown {
    width: 52px;
    height: 30px;
  }
  .team-table thead th { 
    font-size: 6px;
  }
  .substitute { 
    font-size: 6px;
  }
  .team-table tbody td { 
    font-size: 6px;
  }
  .team-table img.badge { 
    width: 11px;
    margin-right: 2px;
  }
  .dropdown-menu.dropdown-menu-full {
    width: 700px;
    margin-top: -30px;
  }
}
@media (max-width: 767px) {
  .title {
    font-size: 17px; 
    margin-top: 20px;
  }
  .formation-player .fom-pos>* {
    font-size: 8px; 
  }
  .p-card .player-thumb {
    width: 100%;
  }
  #mainlayout {
    max-width: 500px;
  }
  .box-select-build {
    margin-left: 0px;
  }
  .progress-wrap .label {
    width: 40px;
    color: #fff;
    font-weight: bold;
    font-size: 10px;
  }
  .custom-box {
    width: 300px;
  }
  .mb-2, .my-2 {
    margin-bottom: 5px !important;
  }
  .box-info .font-weight-bold {
    margin-top: 0px;
  }
  .font-weight-bold { 
    font-size: 8px;
  }
  .shadow .mb-2 { 
    font-size: 8px;
  }
  .price-flag { 
    width: 12px;
    height: 8px;
    margin-top: 2px;
    margin-left: 10px;
  }
  .box-info .shadow {
    height: 55px;
  }
  .box-info {
    width: 90px;
  }
  .box-cau-thu,
  .box-luong {
    margin-top: -30px;
  }
  .box-luong {
    margin-left: 320px;
  }
  .btn.dropdown-toggle, .btn-show-dropdown, .box-salary { 
    font-size: 10px;
  }
  .box-salary, .text-team {
    width: 117px;
    height: 26px !important;
  }
  .btn-show-dropdown {
    width: 45px;
    height: 26px;
  }
  .mr-4, .mx-4 {
    margin-right: 10px !important;
  }
  .box-select-build {
    margin-left: 0px;
    margin-top: -50px;
  }
  .box-doi-hinh {
    width: 465px;
    margin-top: -80px;
  }
  .text-logo { 
    font-size: 13px;
  }
  .team-box {
    background-color: #000;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 465px;
    font-family: "Roboto", sans-serif;
  }
  .alert-info li { 
    margin-bottom: 0px;
    line-height: 10px;
    font-size: 10px;
  }
  .alert-info h6 {
    font-size: 15px;
  }
  .dropdown-menu.dropdown-menu-full {
    width: 600px;
    margin-top: -30px;
  }
}
@media (max-width: 500px) { 
  #mainlayout {
    max-width: 100%;
  }
  p.value { 
    right: 13px;
    top: 5px;
  }
  .title {
    font-size: 13px;
    margin-top: -20px;
  }
  .box-build-person {
    width: 100%;
  }
  .custom-box {
    width: 200px;
  }
  .box-luong {
    margin-left: 300px !important;
  }
  .box-cau-thu, .box-luong {
    margin-top: -60px;
  }
  .box-cau-thu {
    margin-left: 210px !important;
  }
  .box-salary, .text-team {
    width: 65px;
    height: 26px !important;
  }
  .btn.dropdown-toggle, .btn-show-dropdown, .box-salary {
    font-size: 6px;
    padding: 6px 5px;
  }
  .box-select-build {
    margin-left: 0px;
    margin-top: -10px;
  }
  .text-logo {
    font-size: 10px;
  }
  .box-doi-hinh {
    width: 100%;
    margin-top: -60px;
  }
  .col-custom { 
    margin: 0 2px;
  }
  .player-thumb .img-fluid {
    margin-left: 3px;
  }
  .p-card .player-thumb {
    width: 100%;
  }
  .team-box {
    width: 100%;
    margin-left: 0;
    margin-bottom: 40px;
    margin-top: 20px;
  }
  .dropdown-menu.dropdown-menu-full {
    width: 360px;
  }
  .box-info { 
    margin-left: 10px;
  }
}

.p-card .box-default .fom-pos { 
  display: flex;
  justify-content: center;
  left: 38%;
  top: 8px;
}
.grade-tooltip {
  position: absolute;
  background: #2b2b2b;
  color: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: none;
  z-index: 9999;
  width: 200px;
  font-family: Arial, sans-serif;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: bold;
  position: relative;
  background: unset;
  border-bottom: 1px solid #5e5959;
  padding: 0px;
}
a:hover { 
  color: unset;
}
.tooltip-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.tooltip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.grade-tooltip .grade {
  text-align: center;
  padding: 0px 0;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
  font-size: 14px;
}
.grade:hover { transform: scale(1.05); }

.g0, .g1 { background: #555; }
.g2, .g3, .g4 { background: #a86b4c; }
.g5, .g6, .g7 { background: #9ca3af; }
.g8, .g9,.g10 { background: #caa64b; }
.g11, .g12, .g13 { background: #4a90e2; }


/* .level-1 { background: #555; }
.level-2, .level-3, .level-4 { background: #a86b4c; }
.level-5, .level-6, .level-7 { background: #9ca3af; }
.level-8, .level-9,.level-10 { background: #caa64b; }
.level-11, .level-12, .level-13 { background: #4a90e2; } */

.tooltip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #2b2b2b;
}

@media (max-width: 500px) {  
  .grade-tooltip { 
    width: 180px;
  }
  .tooltip-grid {
    gap: 5px;
  }
  .table-list-team {
    padding: 0;
  }
      .box-info {
        width: 80px;
    }
    .fa-3x { 
      font-size: 20px;
    }
}
@media (max-width: 390px) { 
  .box-info {
    width: 70px;
}
  .p-card .player-thumb {
    width: 100%
  }
  .alert-info {
    width: 355px;
  }
  .btn.dropdown-toggle, .btn-show-dropdown, .box-salary { 
    padding: 5px 2px;
    font-size: 7px;
  }
  .shadow .mb-2 {
    font-size: 7px;
  }
  .box-luong {
    margin-left: 290px !important;
  }
  .fa-3x { 
    font-size: 20px;
  }
}
