/* PPID Pelaksana Page Styles - Tailwind Compatible */

/* Group Cards */
.group-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 1.25rem;
  background: white;
  overflow: hidden;
}

.group-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.group-card .icon-container {
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 100%);
}

.group-card .icon-container i {
  color: #0d62ab;
  font-size: 3rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.group-card:hover .icon-container i {
  opacity: 0.8;
  transform: scale(1.15);
}

.group-card.active-group {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
  border: 2px solid #0d62ab;
}

.group-card.active-group .icon-container i {
  opacity: 1;
  color: #0d62ab;
}

.group-card .group-footer {
  padding: 1.125rem 1rem;
  text-align: center;
}

.group-card .group-footer h6 {
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

/* Section Header */
.section-header .badge-gradient {
  background: linear-gradient(135deg, #0d62ab 0%, #075985 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Search Section */
.search-section {
  margin-bottom: 1rem;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-wrapper:focus-within {
  border-color: #0d62ab;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  color: #9ca3af;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.search-wrapper:focus-within .search-icon {
  color: #0d62ab;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0;
  background: transparent;
  color: #1f2937;
  min-width: 0;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-input::placeholder {
  color: #9ca3af;
}

.clear-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.clear-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.clear-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* Table Horizontal Scroll - Sama seperti berita-admin */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Table Styling - Mirip berita-admin dengan Tailwind */
.ppid-table {
  width: 100%;
  border-collapse: collapse;
}

.ppid-table thead {
  background: linear-gradient(135deg, #0d62ab 0%, #075985 100%);
  color: white;
}

.ppid-table thead th {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ppid-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.ppid-table tbody tr:hover {
  background-color: #f9fafb;
}

.ppid-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  vertical-align: middle;
}

/* Logo Wrapper */
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0.375rem;
}

.table-logo-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d62ab 0%, #075985 100%);
  border-radius: 0.375rem;
  color: white;
}

/* Badge Styling */
.bg-gradient-soft {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  color: #0d62ab;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

/* Button Styling */
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #0d62ab;
  color: #0d62ab;
  background-color: transparent;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline-primary:hover {
  background-color: #0d62ab;
  color: white;
  border-color: #0d62ab;
}

/* Scroll Hint */
.scroll-hint {
  padding: 0.5rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 0.5rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 0.5rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Responsive */
@media (max-width: 768px) {
  .search-wrapper {
    padding: 0.625rem 1rem;
  }

  .search-input {
    font-size: 0.9375rem;
  }

  .search-icon {
    font-size: 1rem;
    margin-right: 0.625rem;
  }
}

@media (max-width: 576px) {
  .search-wrapper {
    padding: 0.5rem 0.875rem;
  }

  .search-input {
    font-size: 0.875rem;
  }

  .search-icon {
    font-size: 0.9375rem;
    margin-right: 0.5rem;
  }

  .clear-btn {
    width: 28px;
    height: 28px;
    padding: 0.375rem;
  }
}

/* ============================================
   PPID PELAKSANA DETAIL PAGE STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

/* Breadcrumb Modern */
.breadcrumb-modern {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-modern li {
  display: flex;
  align-items: center;
}

.breadcrumb-modern li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: #9ca3af;
  font-size: 1.25rem;
}

.breadcrumb-modern a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-modern a:hover {
  color: #111827;
}

.breadcrumb-modern .active {
  color: #111827;
  font-weight: 600;
}

/* Detail Card */
.detail-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Header Section */
.detail-header {
  padding: 2.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-bottom: 1px solid #f3f4f6;
}

.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.profile-image-container {
  flex-shrink: 0;
}

.profile-avatar {
  width: auto;
  height: 180px;
  border-radius: 16px;
  object-fit: contain;
  border: 3px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: block;
  background: #f9fafb;
  padding: 10px;
}

.profile-avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  border: 3px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

.profile-position {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.profile-institution {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.9375rem;
  margin-top: 0.125rem;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.meta-badge.active {
  background: #10b981;
  color: white;
}

.meta-badge.inactive {
  background: #6b7280;
  color: white;
}

.meta-badge.grup-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Divider */
.detail-divider {
  height: 1px;
  background: #f3f4f6;
}

/* Content Grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 2.5rem;
}

/* Section */
.detail-section {
  min-width: 0;
}

.section-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 1.25rem 0;
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
  font-size: 1.125rem;
}

.info-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.info-value {
  font-size: 0.9375rem;
  color: #111827;
  font-weight: 500;
  word-break: break-word;
}

.info-link {
  font-size: 0.9375rem;
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.info-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Footer */
.detail-footer {
  padding: 1.5rem 2.5rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Simple Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 42px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  background: #111827;
  color: white;
}

.btn-back:hover {
  background: #374151;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(17, 24, 39, 0.3);
}

.btn-back i {
  font-size: 0.875rem;
}

/* Responsive - Detail Page */
@media (max-width: 768px) {
  .detail-header,
  .detail-grid,
  .detail-footer {
    padding: 1.5rem;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-image-container {
    margin: 0 auto;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-position {
    font-size: 1rem;
  }

  .profile-meta {
    justify-content: center;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-footer {
    flex-direction: column;
    align-items: stretch;
  }

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

  .btn-back {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-avatar,
  .profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }

  .profile-name {
    font-size: 1.25rem;
  }
}
