/* =========================================
   Lihat Dokumen Page - Premium Design
   ========================================= */

/* ===== PROFILE HERO CARD ===== */
.ld-profile-hero {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  animation: ldFadeUp 0.6s ease forwards;
}

.ld-profile-hero-bg {
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
}

.ld-profile-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, white, transparent);
}

.ld-profile-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

/* Avatar */
.ld-avatar {
  position: relative;
  flex-shrink: 0;
}

.ld-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.ld-avatar-circle i {
  font-size: 36px;
  color: white;
}

.ld-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ld-status-success { background: #13deb9; }
.ld-status-danger { background: #ff4d4d; }
.ld-status-warning { background: #ffae1f; }

/* Main Info */
.ld-profile-main {
  flex: 1;
  min-width: 200px;
}

.ld-athlete-name {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.ld-profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ld-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ld-tag-junior {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}

.ld-tag-senior {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
}

.ld-tag-disiplin {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.ld-tag-gender {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #7c3aed;
}

/* Status Badge */
.ld-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.ld-badge-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.ld-badge-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.ld-badge-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

/* Quick Stats */
.ld-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 25px;
}

.ld-quick-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-right: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.ld-quick-stat:last-child {
  border-right: none;
}

.ld-quick-stat:hover {
  background: #fafbff;
}

.ld-qs-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-qs-icon i {
  font-size: 20px;
  color: #667eea;
}

.ld-qs-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ld-qs-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 600;
}

.ld-qs-value {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== GENERAL CARD ===== */
.ld-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  animation: ldFadeUp 0.6s ease forwards;
  height: 100%;
}

.ld-card-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ld-header-club {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.ld-header-docs {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.ld-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 17px;
}

.ld-card-title i {
  font-size: 22px;
}

.ld-card-body {
  padding: 25px;
}

/* Club Grid */
.ld-club-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-club-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.ld-club-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.ld-club-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-club-icon i {
  font-size: 22px;
  color: white;
}

.ld-club-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ld-club-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 600;
}

.ld-club-value {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

/* WA Button Small */
.ld-btn-wa-sm {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.ld-btn-wa-sm:hover {
  background: white;
  color: #667eea;
  border-color: white;
}

/* ===== WHATSAPP CTA ===== */
.ld-wa-cta {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 260px;
  transition: all 0.4s ease;
}

.ld-wa-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.35);
}

.ld-wa-cta-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ld-wa-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px;
}

.ld-wa-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.ld-wa-icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  animation: ldWaPulse 2s ease-in-out infinite;
}

.ld-wa-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.ld-wa-icon-circle i {
  font-size: 34px;
  color: white;
}

.ld-wa-title {
  color: white;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 5px;
}

.ld-wa-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin: 0 0 20px;
}

.ld-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #128C7E;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s;
}

.ld-wa-cta:hover .ld-wa-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ld-wa-disabled {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  cursor: not-allowed;
}

.ld-wa-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ===== DOCUMENT SECTION ===== */
.ld-doc-counter {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.ld-doc-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ld-doc-filled {
  border-color: #e0f2fe;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.ld-doc-filled:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
  border-color: #93c5fd;
}

.ld-doc-empty {
  background: #fafafa;
  border-color: #f0f0f0;
}

/* Document Status Indicator */
.ld-doc-status-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 20px;
}

.ld-doc-filled .ld-doc-status-indicator {
  color: #13deb9;
}

.ld-doc-empty .ld-doc-status-indicator {
  color: #d1d5db;
}

/* Document Icon Area */
.ld-doc-icon-area {
  margin-bottom: 18px;
  width: 100%;
}

.ld-doc-type-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ld-doc-pdf-icon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.ld-doc-pdf-icon i {
  font-size: 40px;
  color: #dc2626;
}

.ld-doc-empty-icon {
  background: #f3f4f6;
}

.ld-doc-empty-icon i {
  font-size: 40px;
  color: #d1d5db;
}

/* Document Thumbnail */
.ld-doc-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ld-doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ld-doc-thumb:hover img {
  transform: scale(1.08);
}

.ld-doc-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102,126,234,0.6), rgba(118,75,162,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ld-doc-thumb-overlay i {
  font-size: 32px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.ld-doc-thumb:hover .ld-doc-thumb-overlay {
  opacity: 1;
}

/* Document Info */
.ld-doc-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.ld-doc-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-doc-name i {
  color: #667eea;
}

.ld-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ld-doc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

.ld-doc-missing {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  font-style: italic;
}

/* ===== NOTE ===== */
.ld-note {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-left: 5px solid #f59e0b;
  padding: 20px;
  border-radius: 0 16px 16px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ld-note-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-note-icon i {
  font-size: 22px;
  color: white;
}

.ld-note-body strong {
  display: block;
  color: #92400e;
  margin-bottom: 6px;
  font-size: 15px;
}

.ld-note-body p {
  margin: 0;
  color: #78350f;
  line-height: 1.6;
}

/* ===== ACTION BUTTONS ===== */
.ld-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  animation: ldFadeUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.ld-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: left;
}

.ld-action-btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-action-btn-icon i {
  font-size: 24px;
  color: white;
}

.ld-action-btn-text {
  display: flex;
  flex-direction: column;
}

.ld-action-btn-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.ld-action-btn-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.ld-btn-approve {
  background: linear-gradient(135deg, #13deb9, #0eb394);
  box-shadow: 0 8px 25px rgba(19, 222, 185, 0.3);
}

.ld-btn-approve .ld-action-btn-icon {
  background: rgba(255,255,255,0.2);
}

.ld-btn-approve:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(19, 222, 185, 0.4);
}

.ld-btn-reject {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.ld-btn-reject .ld-action-btn-icon {
  background: rgba(255,255,255,0.2);
}

.ld-btn-reject:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

/* Status Result */
.ld-status-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-radius: 18px;
}

.ld-result-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-result-icon i {
  font-size: 26px;
}

.ld-result-text {
  display: flex;
  flex-direction: column;
}

.ld-result-text strong {
  font-size: 16px;
}

.ld-result-text span {
  font-size: 13px;
  margin-top: 2px;
  opacity: 0.8;
}

.ld-result-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1px solid #6ee7b7;
}

.ld-result-success .ld-result-icon {
  background: rgba(19, 222, 185, 0.15);
}

.ld-result-success .ld-result-icon i {
  color: #059669;
}

.ld-result-success .ld-result-text strong {
  color: #065f46;
}

.ld-result-success .ld-result-text span {
  color: #047857;
}

.ld-result-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 1px solid #fca5a5;
}

.ld-result-danger .ld-result-icon {
  background: rgba(255, 77, 77, 0.15);
}

.ld-result-danger .ld-result-icon i {
  color: #dc2626;
}

.ld-result-danger .ld-result-text strong {
  color: #991b1b;
}

.ld-result-danger .ld-result-text span {
  color: #b91c1c;
}

/* ===== LIGHTBOX ===== */
.ld-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ld-lightbox.active {
  display: flex;
  animation: ldLightboxIn 0.3s ease;
}

.ld-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.ld-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.ld-lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.ld-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes ldFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ldWaPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

@keyframes ldLightboxIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .ld-profile-hero-content {
    padding: 0 20px;
  }

  .ld-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ld-quick-stat {
    border-bottom: 1px solid #f0f0f0;
  }

  .ld-quick-stat:nth-child(2) {
    border-right: none;
  }

  .ld-quick-stat:nth-child(3),
  .ld-quick-stat:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .ld-profile-hero-bg {
    height: 80px;
  }

  .ld-profile-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -40px;
    padding: 0 15px;
  }

  .ld-avatar-circle {
    width: 78px;
    height: 78px;
  }

  .ld-avatar-circle i {
    font-size: 30px;
  }

  .ld-athlete-name {
    font-size: 20px;
  }

  .ld-profile-tags {
    justify-content: center;
  }

  .ld-status-badge {
    font-size: 13px;
    padding: 8px 16px;
  }

  .ld-quick-stats {
    grid-template-columns: 1fr 1fr;
  }

  .ld-quick-stat {
    padding: 15px;
    gap: 10px;
  }

  .ld-qs-value {
    font-size: 13px;
  }

  .ld-actions {
    flex-direction: column;
  }

  .ld-action-btn {
    padding: 16px 20px;
  }

  .ld-wa-cta {
    min-height: 200px;
  }
}

@media (max-width: 576px) {
  .ld-quick-stats {
    grid-template-columns: 1fr;
  }

  .ld-quick-stat {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .ld-quick-stat:last-child {
    border-bottom: none;
  }

  .ld-doc-card {
    padding: 18px;
  }
}
