/* Teams Page CSS */
.tm-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
}

.tm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-header-left h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: inline-block;
  margin-right: 8px;
}

.tm-breadcrumb {
  font-size: 11px;
  color: #6b7280;
  display: inline-block;
}

.tm-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.tm-breadcrumb a:hover {
  text-decoration: underline;
}

.tm-btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: 0.2s;
}

.tm-btn-outline:hover {
  background: #f9fafb;
}

/* Card General */
.tm-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.tm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 16px;
}

.tm-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.tm-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-search-box {
  position: relative;
}

.tm-search-box input {
  padding: 8px 12px 8px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.tm-search-box input:focus {
  border-color: #3b82f6;
}

.tm-search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 12px;
}

.tm-toggle-wrap {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.tm-toggle {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  margin-left: 8px;
}

.tm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tm-toggle span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: .4s;
  border-radius: 34px;
}

.tm-toggle span:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.tm-toggle input:checked + span {
  background-color: #3b82f6;
}

.tm-toggle input:checked + span:before {
  transform: translateX(14px);
}

/* Table */
.tm-table-wrapper {
  overflow-x: auto;
}

.tm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.tm-table th {
  text-align: left;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.tm-sort-icon {
  display: inline-flex;
  flex-direction: column;
  font-size: 8px;
  margin-left: 4px;
  color: #d1d5db;
  vertical-align: middle;
}

.tm-table td {
  padding: 16px 24px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.tm-table tr:hover {
  background: #fdfdfd;
}

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

.tm-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

/* Team Cell */
.tm-team-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.tm-team-desc {
  font-size: 11px;
  color: #6b7280;
}

/* Rating Stars */
.tm-stars {
  color: #fbbf24;
  font-size: 12px;
}

.tm-stars-empty {
  color: #e5e7eb;
}

/* Avatars */
.tm-avatars {
  display: flex;
  align-items: center;
}

.tm-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
}

.tm-avatars img:first-child {
  margin-left: 0;
}

.tm-avatar-more {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

/* Pagination */
.tm-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

.tm-show-entries {
  font-size: 12px;
  color: #6b7280;
}

.tm-select {
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin: 0 4px;
  outline: none;
  font-size: 12px;
}

.tm-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.tm-page-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.tm-page-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.tm-page-active {
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 600;
}

/* FAQ Section */
.tm-faq-card {
  padding: 24px;
}

.tm-faq-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.tm-faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.tm-faq-item:last-child {
  border-bottom: none;
}

.tm-faq-q {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.tm-faq-icon {
  color: #9ca3af;
  font-size: 14px;
  transition: transform 0.2s;
}

.tm-faq-item:hover .tm-faq-q {
  color: #111827;
}

.tm-faq-item:hover .tm-faq-icon {
  color: #111827;
}

/* Illustration Cards */
.tm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .tm-grid-2 {
    grid-template-columns: 1fr;
  }
}

.tm-illus-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.tm-illus-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.tm-illus-card p {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 55%;
}

.tm-illus-card a {
  font-size: 10px;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: auto;
}

.tm-illus-card a:hover {
  text-decoration: underline;
}

.tm-illus-img {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 140px;
  height: auto;
}
