/* ================================================================
   STRATUM CREDENTIALS MODULE - COMPREHENSIVE DARK WEB MONITORING
   Professional credential exposure tracking and management
   ================================================================ */

/* ==================== MODULE CONTAINER ==================== */
.cred-module {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== STATS BAR ==================== */
.cred-stats-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.cred-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.cred-stat-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.cred-stat-item.critical { border-left: 3px solid #ef4444; }
.cred-stat-item.danger { border-left: 3px solid #f97316; }
.cred-stat-item.warning { border-left: 3px solid #eab308; }
.cred-stat-item.vip { border-left: 3px solid #a855f7; }
.cred-stat-item.success { border-left: 3px solid #22c55e; }

.cred-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.cred-stat-item.critical .cred-stat-value { color: #f87171; }
.cred-stat-item.danger .cred-stat-value { color: #fb923c; }
.cred-stat-item.warning .cred-stat-value { color: #fbbf24; }
.cred-stat-item.vip .cred-stat-value { color: #c084fc; }
.cred-stat-item.success .cred-stat-value { color: #4ade80; }

.cred-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ==================== TOOLBAR ==================== */
.cred-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  flex-wrap: wrap;
}

/* Search Section */
.cred-search-section {
  flex: 0 0 280px;
}

.cred-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.cred-search-box:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.cred-search-box i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.cred-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #ffffff;
}

.cred-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cred-search-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.cred-search-clear:hover {
  color: #ef4444;
}

/* Filters Section */
.cred-filters-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.cred-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cred-filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.cred-filter-select {
  padding: 8px 32px 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
}

.cred-filter-select:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.cred-filter-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.cred-filter-select option {
  background: #1a1f2e;
  color: #ffffff;
  padding: 8px;
}

/* ==================== TIME RANGE BUTTONS - FIXED ==================== */
.cred-time-range {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cred-time-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cred-time-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.cred-time-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* ==================== ACTIONS SECTION - FIXED BUTTONS ==================== */
.cred-actions-section {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Force Reset Selected Button - Warning Style */
.cred-actions-section .btn.btn-warning,
.cred-actions-section button.btn-warning,
#cred-bulk-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fb923c;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cred-actions-section .btn.btn-warning:hover:not(:disabled),
.cred-actions-section button.btn-warning:hover:not(:disabled),
#cred-bulk-reset-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35) 0%, rgba(249, 115, 22, 0.25) 100%);
  border-color: rgba(249, 115, 22, 0.5);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
}

.cred-actions-section .btn.btn-warning:disabled,
.cred-actions-section button.btn-warning:disabled,
#cred-bulk-reset-btn:disabled {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cred-actions-section .btn.btn-warning:disabled i,
#cred-bulk-reset-btn:disabled i {
  opacity: 0.5;
}

/* Export Button - Secondary Style */
.cred-actions-section .btn.btn-secondary,
.cred-actions-section button.btn-secondary,
#cred-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cred-actions-section .btn.btn-secondary:hover,
.cred-actions-section button.btn-secondary:hover,
#cred-export-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

/* Button Small Size Override */
.cred-actions-section .btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* ==================== RESULTS BAR ==================== */
.cred-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-results-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cred-results-info strong {
  color: #ffffff;
  font-weight: 700;
}

.cred-selected-count {
  color: rgba(139, 92, 246, 0.9);
  margin-left: 8px;
}

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

/* ==================== VIEW TOGGLE BUTTONS - FIXED ==================== */
.cred-view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.cred-view-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.cred-view-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-color: rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

/* ==================== SORT DROPDOWN - FIXED ==================== */
.cred-sort-dropdown {
  position: relative;
}

.cred-sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cred-sort-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
  background: rgba(139, 92, 246, 0.1);
}

.cred-sort-btn i:last-child {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.cred-sort-dropdown.open .cred-sort-btn i:last-child {
  transform: rotate(180deg);
}

.cred-sort-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 160px;
  background: linear-gradient(145deg, rgba(20, 25, 35, 0.98) 0%, rgba(15, 18, 28, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 8px;
  display: none;
  z-index: 100;
}

.cred-sort-menu.show {
  display: block;
  animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cred-sort-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cred-sort-menu button:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #ffffff;
}

.cred-sort-menu button.active {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

/* ==================== TABLE STYLES ==================== */
.cred-table-wrapper {
  overflow-x: auto;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.cred-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.cred-table thead {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cred-table th {
  padding: 16px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cred-th-checkbox { width: 50px; }
.cred-th-email { min-width: 220px; }
.cred-th-dept { min-width: 100px; }
.cred-th-source { min-width: 150px; }
.cred-th-password { min-width: 120px; }
.cred-th-date { min-width: 110px; }
.cred-th-risk { min-width: 90px; }
.cred-th-status { min-width: 120px; }
.cred-th-actions { min-width: 100px; text-align: center; }

.cred-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.cred-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.06);
}

.cred-table tbody tr.vip {
  background: rgba(168, 85, 247, 0.05);
}

.cred-table tbody tr.vip:hover {
  background: rgba(168, 85, 247, 0.1);
}

.cred-table tbody tr.selected {
  background: rgba(139, 92, 246, 0.1);
}

.cred-table td {
  padding: 16px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

/* Checkbox Styles */
.cred-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cred-checkbox-wrapper input {
  display: none;
}

.cred-checkbox-custom {
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  position: relative;
  transition: all 0.2s ease;
}

.cred-checkbox-wrapper input:checked + .cred-checkbox-custom {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #8b5cf6;
}

.cred-checkbox-wrapper input:checked + .cred-checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cred-checkbox-wrapper:hover .cred-checkbox-custom {
  border-color: rgba(139, 92, 246, 0.5);
}

/* Email Cell */
.cred-email-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cred-vip-icon {
  color: #fbbf24;
  font-size: 14px;
}

.cred-email {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 13px;
  color: #ffffff;
}

.cred-row.vip .cred-email {
  color: #c084fc;
}

/* Department */
.cred-dept {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* Source Cell */
.cred-source-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-source-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cred-source-detail {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==================== PASSWORD TYPE BADGES - FIXED ==================== */
.cred-password-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cred-password-badge.plaintext {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.cred-password-badge.hashed {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.cred-password-badge.encrypted {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.cred-password-badge.api_key {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Date */
.cred-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==================== RISK BADGES - FIXED ==================== */
.cred-risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cred-risk-badge.critical {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.cred-risk-badge.high {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.cred-risk-badge.medium {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(234, 179, 8, 0.15) 100%);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.cred-risk-badge.low {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ==================== STATUS BADGES - FIXED ==================== */
.cred-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cred-status-badge.new {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cred-status-badge.reset_required {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0.15) 100%);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.cred-status-badge.reset_done {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.cred-status-badge.investigating {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.cred-status-badge.false_positive {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.25) 0%, rgba(100, 116, 139, 0.15) 100%);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ==================== ACTION BUTTONS - FIXED ==================== */
.cred-action-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.cred-action-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.cred-action-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.cred-action-btn.danger {
  color: rgba(239, 68, 68, 0.7);
}

.cred-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.cred-action-btn.success {
  color: #4ade80;
  cursor: default;
}

.cred-action-btn.success:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.cred-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== CARD VIEW (Alternative) ==================== */
.cred-cards-view {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.cred-cards-view.active {
  display: grid;
}

.cred-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.cred-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cred-card.vip {
  border-left: 3px solid #a855f7;
}

.cred-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cred-card-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cred-card-email .cred-vip-icon {
  color: #fbbf24;
}

.cred-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.cred-card-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cred-card-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cred-card-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.cred-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cred-card-actions {
  display: flex;
  gap: 8px;
}

/* ==================== EMPTY STATE ==================== */
.cred-empty-state {
  text-align: center;
  padding: 60px 40px;
}

.cred-empty-state i {
  font-size: 48px;
  color: rgba(139, 92, 246, 0.4);
  margin-bottom: 20px;
}

.cred-empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.cred-empty-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

/* ==================== LOADING STATE ==================== */
.cred-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.cred-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cred-loading-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==================== PAGINATION - FIXED ==================== */
.cred-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin-top: 16px;
}

.cred-pagination-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.cred-pagination-info strong {
  color: #ffffff;
  font-weight: 700;
}

.cred-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cred-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cred-page-btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 10px;
}

.cred-page-btn:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

.cred-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.2);
}

.cred-page-num {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cred-page-num:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

.cred-page-num.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(59, 130, 246, 0.3) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.cred-page-ellipsis {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.cred-page-size {
  padding: 8px 36px 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  margin-left: 12px;
}

.cred-page-size:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.cred-page-size:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.cred-page-size option {
  background: #1a1f2e;
  color: #ffffff;
  padding: 8px;
}

/* ==================== CREDENTIAL DETAIL MODAL ==================== */
.cred-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cred-detail-modal.show {
  opacity: 1;
  visibility: visible;
}

.cred-detail-container {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: linear-gradient(165deg, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.cred-detail-modal.show .cred-detail-container {
  transform: scale(1);
}

.cred-detail-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.cred-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cred-detail-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.cred-detail-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cred-detail-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.cred-detail-body {
  padding: 24px;
  overflow-y: auto;
}

.cred-detail-section {
  margin-bottom: 24px;
}

.cred-detail-section:last-child {
  margin-bottom: 0;
}

.cred-detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cred-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cred-detail-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cred-detail-field.full-width {
  grid-column: 1 / -1;
}

.cred-detail-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.cred-detail-value {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.cred-detail-value.mono {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cred-detail-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.15);
}

/* Footer Buttons */
.cred-detail-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cred-detail-footer .btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.cred-detail-footer .btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #fff;
}

.cred-detail-footer .btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

.cred-detail-footer .btn-primary:hover {
  background: linear-gradient(135deg, #9d6fff 0%, #8b4ffa 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cred-detail-footer .btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.cred-detail-footer .btn-danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.cred-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cred-toast.show {
  transform: translateX(0);
}

.cred-toast.success { border-left: 4px solid #22c55e; }
.cred-toast.error { border-left: 4px solid #ef4444; }
.cred-toast.warning { border-left: 4px solid #f59e0b; }
.cred-toast.info { border-left: 4px solid #3b82f6; }

.cred-toast i {
  font-size: 18px;
}

.cred-toast.success i { color: #4ade80; }
.cred-toast.error i { color: #f87171; }
.cred-toast.warning i { color: #fbbf24; }
.cred-toast.info i { color: #60a5fa; }

.cred-toast-text {
  font-size: 14px;
  color: #ffffff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
  .cred-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .cred-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cred-search-section {
    flex: 1 1 100%;
  }
  
  .cred-filters-section {
    justify-content: flex-start;
  }
  
  .cred-actions-section {
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .cred-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cred-stat-item {
    padding: 16px 12px;
  }
  
  .cred-stat-value {
    font-size: 26px;
  }
}

@media (max-width: 700px) {
  .cred-stats-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .cred-stat-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 18px;
  }
  
  .cred-stat-value {
    margin-bottom: 0;
  }
  
  .cred-filters-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cred-filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  
  .cred-filter-select {
    width: 100%;
  }
  
  .cred-time-range {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cred-results-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cred-pagination {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cred-pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}
