/* --- PAYMENT MANAGEMENT STYLES --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.stat-icon.pending { background: linear-gradient(135deg, #ffa726, #ff9800); }
.stat-icon.verified { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.stat-icon.rejected { background: linear-gradient(135deg, #f44336, #c62828); }
.stat-icon.total { background: linear-gradient(135deg, #2196f3, #1565c0); }

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark-color);
}

.stat-content p {
  margin: 4px 0 0 0;
  color: #666;
  font-size: 0.9rem;
}

/* Enhanced Filters */
.filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.form-select {
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  transition: border-color 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Card Headers */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.card-header h3 {
  margin: 0;
  color: var(--dark-color);
  font-size: 1.25rem;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.record-count {
  color: #666;
  font-size: 0.9rem;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Payments Table */
.payments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.payments-table th {
  background: #f8f9fa;
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--dark-color);
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.payments-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.payment-row:hover {
  background: rgba(0, 150, 136, 0.05);
}

.payment-row[data-status="pending"] {
  border-left: 4px solid #ffa726;
}

.payment-row[data-status="verified"] {
  border-left: 4px solid #4caf50;
}

.payment-row[data-status="rejected"] {
  border-left: 4px solid #f44336;
}

/* Table Cell Styles */
.payment-id code {
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.payment-id small {
  display: block;
  color: #666;
  margin-top: 4px;
  font-size: 0.75rem;
}

.user-details strong {
  display: block;
  color: var(--dark-color);
  margin-bottom: 4px;
}

.user-meta span {
  color: #666;
  font-size: 0.8rem;
}

.invoice-details strong {
  display: block;
  color: var(--dark-color);
  margin-bottom: 4px;
}

.service-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.amount-display {
  text-align: right;
}

.currency {
  color: #666;
  font-size: 0.8rem;
  margin-right: 4px;
}

.value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.reference-code {
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #333;
}

.no-reference, .no-pop {
  color: #999;
  font-style: italic;
  font-size: 0.8rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-pending {
  background: #fff3e0;
  color: #e65100;
}

.status-badge.status-verified {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-badge.status-rejected {
  background: #ffebee;
  color: #c62828;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-form {
  display: inline;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: #999;
}

.status-info {
  color: #666;
  font-size: 0.8rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-content i {
  font-size: 3rem;
  color: #ccc;
}

.empty-content h4 {
  margin: 0;
  color: #666;
  font-size: 1.1rem;
}

.empty-content p {
  margin: 0;
  color: #999;
  font-size: 0.9rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  margin: 0;
  color: var(--dark-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f5f5f5;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-form {
    grid-template-columns: 1fr;
  }
  
  .payments-table {
    font-size: 0.8rem;
  }
  
  .payments-table th,
  .payments-table td {
    padding: 12px 8px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 4px;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
}

/* --- SHARED CARD & GRID STYLES --- */
.card { 
    background: var(--white); 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    box-shadow: var(--box-shadow); 
    transition: transform 0.3s ease; 
}
.card:hover { 
    transform: translateY(-5px); 
}
.card img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
}
.card-content { 
    padding: 20px; 
}
.card-tag { 
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 5px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    margin-bottom: 10px; 
}
.card-title { 
    font-size: 1.2rem; 
    margin-bottom: 5px; 
    color: var(--dark-color); 
}
.card-subtitle { 
    font-size: 1rem; 
    color: #666; 
    margin-bottom: 15px; 
}
.card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid var(--light-gray); 
    padding-top: 15px; 
}
.rating { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-size: 0.9rem; 
}
.star-filled { 
    color: #FFC107; 
    fill: #FFC107; 
    width: 16px; 
    height: 16px; 
}
.price { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--primary-color); 
}

/* --- LISTING DETAILS LAYOUT --- */
.listing-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.gallery-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}
.gallery-main { width: 100%; height: 420px; object-fit: cover; display:block; }
.gallery-thumbs { display:flex; gap:10px; flex-wrap:wrap; padding: 12px; }
.gallery-thumbs img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.detail-panel { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--box-shadow); padding: 20px; position: sticky; top: 84px; height: fit-content; }
.detail-meta { display:flex; gap:8px; flex-wrap:wrap; margin: 8px 0 12px 0; }
.chip { display:inline-flex; align-items:center; gap:6px; background:#eef2f7; color:#334155; padding:6px 10px; border-radius:999px; font-size: 12px; }
.section-card { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--box-shadow); padding: 20px; }
.section-title { font-size: 1.1rem; margin: 0 0 10px 0; color: var(--dark-color); }

/* --- LISTING FILTER HEADER --- */
.filter-hero { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--box-shadow); padding: 16px; margin-bottom: 16px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.filter-hero .filter-field { flex:1; min-width: 180px; }

@media (max-width: 992px) {
    .listing-grid { grid-template-columns: 1fr; }
    .gallery-main { height: 320px; }
}
@media (max-width: 576px) {
    .gallery-main { height: 240px; }
}

/* --- TRUST BAR COMPONENTS --- */
.trust-bar { 
    background-color: var(--white); 
    padding: 80px 0; 
}
.trust-item { 
    text-align: center; 
}
.trust-item i { 
    width: 48px; 
    height: 48px; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}
.trust-item h3 { 
    font-size: 1.3rem; 
    color: var(--dark-color); 
    margin-bottom: 10px; 
}
.trust-item p { 
    color: #666; 
    line-height: 1.6; 
}

/* --- PILLARS SECTION COMPONENTS --- */
.pillars { 
    padding: 80px 0; 
    background-color: var(--light-gray); 
}
.pillar-card { 
    text-align: center; 
    padding: 30px 20px; 
    background: var(--white); 
    border-radius: var(--border-radius); 
    box-shadow: var(--box-shadow); 
    transition: transform 0.3s ease; 
}
.pillar-card:hover { 
    transform: translateY(-5px); 
}
.pillar-icon-wrapper { 
    width: 80px; 
    height: 80px; 
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: 0 auto 20px; 
}
.pillar-icon-wrapper i { 
    width: 36px; 
    height: 36px; 
    color: var(--white); 
}
.pillar-card h3 { 
    font-size: 1.4rem; 
    color: var(--dark-color); 
    margin-bottom: 15px; 
}
.pillar-card p { 
    color: #666; 
    margin-bottom: 25px; 
    line-height: 1.6; 
}

/* --- FINAL CTA COMPONENT --- */
.final-cta { 
    background-color: var(--dark-color); 
    color: var(--white); 
    padding: 80px 0; 
    text-align: center; 
}
.final-cta h2 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
}
.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- RESPONSIVE DESIGN FOR COMPONENTS --- */
@media (max-width: 992px) {
    .trust-item i { 
        width: 40px; 
        height: 40px; 
    }
    .trust-item h3 { 
        font-size: 1.2rem; 
    }
    .pillar-card { 
        margin-bottom: 30px; 
    }
    .final-cta h2 { 
        font-size: 2.2rem; 
    }
    
    /* Improve mobile grid layouts */
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .trust-item { 
        margin-bottom: 30px; 
    }
    .pillar-card { 
        padding: 25px 15px; 
    }
    .final-cta h2 { 
        font-size: 2rem; 
    }
    .final-cta p { 
        font-size: 1rem; 
    }
    
    /* Further improve small mobile layouts */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
} 
