/* ========================================
   GLOBAL COMPONENTS CSS
   Modern UI Components untuk semua Vue Components
   
   CARA PENGGUNAAN:
   1. File ini sudah di-include di app.blade.php
   2. Gunakan class CSS yang tersedia di komponen Vue manapun
   3. Tidak perlu menulis ulang CSS yang sama
   
   KOMPONEN YANG TERSEDIA:
   - .stats-card (untuk kartu statistik)
   - .search-filter-card (untuk pencarian dan filter)
   - .info-item (untuk item informasi)
   - .action-btn (untuk tombol aksi)
   - .modern-card (untuk kartu modern)
   - .pagination-card (untuk pagination)
   - .empty-state-card (untuk state kosong)
   - .loading-spinner (untuk loading)
   
   CONTOH PENGGUNAAN:
   <div class="stats-card bg-gradient-primary text-white">
     <div class="stats-icon">
       <i class="fas fa-users"></i>
     </div>
     <div class="stats-content">
       <h3 class="stats-number">150</h3>
       <p class="stats-label">Total Users</p>
     </div>
   </div>
   ======================================== */

/* ========================================
   STATS CARDS
   ======================================== */
.stats-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.alert{
  font-size: 1rem !important;
}
.swal2-html-container p{
  margin-bottom: 0 !important;
}
.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.stats-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.stats-content {
  color: white;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  opacity: 0.9;
}

/* Gradient backgrounds for stats cards */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #1e6736 0%, #1b9e3e 100%);
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #f11355 0%, #d8d3b6 100%);
}

/* ========================================
   SEARCH & FILTER SECTION
   ======================================== */
.search-filter-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-filter-header {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-filter-header h6 {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.search-filter-body {
  padding: 1.5rem;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.search-input-group:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-input-group .search-icon {
  color: #6c757d;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #2d3748;
  padding-left: 0.5rem;
}

.search-input:focus {
  outline: none;
}

.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #2d3748;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.filter-btn {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e9ecef;
  color: #6c757d;
  width: 100%;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

/* ========================================
   INFO ITEMS
   ======================================== */
.info-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  padding: 0.5rem;
}

.info-item:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.info-content {
  flex: 1;
  min-width: 0;
}

.info-label {
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  display: block;
}

.info-content p {
  color: #2d3748;
  font-weight: 600;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a5c69;
  display: flex;
  align-items: center;
}

.info-section {
  margin-bottom: 1rem;
}

/* ========================================
   PROGRESS SECTION
   ======================================== */
.progress-section {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 500;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-custom {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-text {
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 500;
}

.progress-percentage {
  color: #667eea;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Progress Bar Colors */
.progress-bar-primary {
  background: linear-gradient(90deg, #4e73df 0%, #667eea 100%);
}

.progress-bar-success {
  background: linear-gradient(90deg, #1cc88a 0%, #43e97b 100%);
}

.progress-bar-info {
  background: linear-gradient(90deg, #36b9cc 0%, #4facfe 100%);
}

/* ========================================
   STATUS BADGES
   ======================================== */
.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: none;
}

.status-badge.badge {
  border: none;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.action-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  min-width: 80px;
  justify-content: center;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

.btn-view {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-view:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-edit {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-edit:hover {
  background: linear-gradient(135deg, #3e9bed 0%, #00d8e0 100%);
}

.btn-delete {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.btn-delete:hover {
  background: linear-gradient(135deg, #e95f8a 0%, #e6d030 100%);
}

.btn-submit {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #32d26a 0%, #2de0c6 100%);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 2px dashed rgba(102, 126, 234, 0.3);
}

.empty-state-content {
  margin-bottom: 1.5rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.empty-state-title {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.empty-state-description {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination-info {
  font-size: 0.875rem;
  color: #6c757d;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid #667eea;
  background: transparent;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #6c757d;
  color: #6c757d;
}

.pagination-current {
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  min-width: 60px;
  text-align: center;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
}

.loading-spinner .spinner-border {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.loading-spinner p {
  font-size: 1rem;
  color: #6c757d;
}

/* ========================================
   CARD COMPONENTS
   ======================================== */
.modern-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.modern-card-header {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card-body {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
}

.modern-card-footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  .stats-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
  
  .stats-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
  
  .info-item {
    padding: 0.4rem;
  }
  
  .info-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
  
  .info-content p {
    font-size: 0.75rem;
  }
  
  .search-filter-body {
    padding: 1rem;
  }
  
  .search-filter-header {
    padding: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .pagination-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .stats-card {
    margin-bottom: 0.75rem;
  }
  
  .search-filter-body {
    padding: 0.75rem;
  }
  
  .modern-card-header,
  .modern-card-body,
  .modern-card-footer {
    padding: 1rem;
  }
}
