/*
 * Phicoin Components CSS v3.0.0
 * Modern Web3 components matching phicoin.net design
 * Enhanced glassmorphism and interactive elements
 * Adapted for blockchain explorer HTML structure
 */

/* ============================================================================
   GLOBAL BODY AND BACKGROUND SETUP
   ============================================================================ */

/* Apply Phicoin background to body when theme is active */
body {
  background: var(--phicoin-dark, #0a0f1c) !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Phicoin background elements - Enhanced for new system */
#phicoin-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

/* Legacy support for old background elements */
.stars-background, .particles-background, .pulse-rings {
  display: none; /* Hide old elements to prevent conflicts */
}

/* ============================================================================
   NAVIGATION AND HEADER COMPONENTS
   ============================================================================ */

/* Enhanced navbar styling */
.navbar, #main-header, #main-header-side {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(53, 120, 229, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.navbar-brand, .nav-link {
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
  color: #54c7ec !important;
  text-shadow: 0 0 10px rgba(84, 199, 236, 0.5);
}

/* Phicoin.net Official Navigation Line Effect */
.navbar .nav-link {
  position: relative;
  font-weight: 500;
}

.navbar .nav-link::before {
  background: linear-gradient(90deg, #3578e5, #8b5cf6);
  bottom: 0;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 0;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::before {
  width: 80%;
}

/* Side navigation styling */
#side-nav-bar {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(53, 120, 229, 0.2) !important;
}

/* ============================================================================
   CARD AND PANEL COMPONENTS
   ============================================================================ */

/* Enhanced card styling with glassmorphism */
.card, .card-default {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(53, 120, 229, 0.2) !important;
  border-radius: 1rem !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff !important;
}

.card:hover {
  /* transform: translateY(-2px); */
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(84, 199, 236, 0.4) !important;
}

.card-header {
  background: rgba(53, 120, 229, 0.1) !important;
  border-bottom: 1px solid rgba(53, 120, 229, 0.2) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 1rem 1rem 0 0 !important;
}

.card-body {
  color: #ffffff !important;
}

/* Header panels with enhanced styling */
.header-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.header-panel .fa-solid, .header-panel .fa-regular {
  color: #3578e5;
  font-size: 1.25rem;
}

/* ============================================================================
   TABLE COMPONENTS
   ============================================================================ */

/* Enhanced table styling */
.table {
  color: #ffffff !important;
  border-color: rgba(53, 120, 229, 0.2) !important;
}

.table thead th {
  background: rgba(53, 120, 229, 0.15) !important;
  border-color: rgba(53, 120, 229, 0.3) !important;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.table tbody tr {
  border-color: rgba(53, 120, 229, 0.1) !important;
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: rgba(53, 120, 229, 0.05) !important;
  /* transform: translateX(2px); */
}

.table tbody td {
  border-color: rgba(53, 120, 229, 0.1) !important;
  color: #ffffff !important;
  vertical-align: middle;
}

/* Table links and interactive elements */
.table a {
  color: #54c7ec !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.table a:hover {
  color: #3578e5 !important;
  text-shadow: 0 0 8px rgba(84, 199, 236, 0.5);
}

/* ============================================================================
   BUTTON COMPONENTS
   ============================================================================ */

/* Enhanced button styling */
.btn {
  border-radius: 0.75rem !important;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary, .btn-success {
  background: linear-gradient(135deg, #3578e5 0%, #54c7ec 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(53, 120, 229, 0.3);
}

.btn-primary:hover, .btn-success:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 8px 25px rgba(53, 120, 229, 0.4);
}

.btn-primary::before, .btn-success::before {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before, .btn-success:hover::before {
  left: 100%;
}

/* ============================================================================
   FORM COMPONENTS
   ============================================================================ */

/* Enhanced form styling */
.form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(53, 120, 229, 0.2) !important;
  border-radius: 0.75rem !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #54c7ec !important;
  box-shadow: 0 0 0 0.2rem rgba(84, 199, 236, 0.25) !important;
  color: #ffffff !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================================================
   BADGE AND LABEL COMPONENTS
   ============================================================================ */

/* Enhanced badge styling */
.badge {
  border-radius: 0.5rem !important;
  font-weight: 600;
  padding: 0.5em 0.75em;
  font-size: 0.875em;
}

.badge.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
}

/* ============================================================================
   ALERT COMPONENTS
   ============================================================================ */

/* Enhanced alert styling */
.alert {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(53, 120, 229, 0.2) !important;
  border-radius: 1rem !important;
  color: #ffffff !important;
}

.alert-warning {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: rgba(245, 158, 11, 0.1) !important;
}

.alert-danger {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

/* ============================================================================
   FOOTER COMPONENTS
   ============================================================================ */

/* Enhanced footer styling */
#footer-container {
  color: #ffffff !important;
  margin: auto;
    margin-top: auto;
  max-width: 255px !important;
  background: none !important;
  border: none !important;
}

.social-link {
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #54c7ec !important;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(84, 199, 236, 0.5);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Text colors */
.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.text-center {
  text-align: center !important;
}

/* Decimal highlighting */
.decimal {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
}

/* Break word utility */
.breakWord {
  word-break: break-all;
  word-wrap: break-word;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .header-panel {
    font-size: 1rem;
  }
  
  #phicoin-background .particles-background {
    opacity: 0.5;
  }
}

@media (max-width: 576px) {
  .card {
    border-radius: 0.75rem !important;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .table {
    font-size: 0.8125rem;
  }
}

/* ============================================================================
   ANIMATION PERFORMANCE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .particles-background,
  .stars-background,
  .pulse-rings {
    animation: none !important;
  }
}

/* ============================================================================
   HIGH CONTRAST MODE
   ============================================================================ */

@media (prefers-contrast: high) {
  .card, .card-default {
    border-width: 2px !important;
    border-color: #54c7ec !important;
  }
  
  .table thead th {
    background: rgba(53, 120, 229, 0.3) !important;
  }
  
  .btn-primary, .btn-success {
    border: 2px solid #54c7ec !important;
  }
}

/* ============================================================================
   PAGINATION COMPONENTS
   ============================================================================ */

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  margin: 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(53, 120, 229, 0.2) !important;
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin: 1px;
}

.pagination a:hover {
  background: rgba(84, 199, 236, 0.2) !important;
  color: #54c7ec !important;
  border-color: #54c7ec !important;
  box-shadow: 0 8px 32px rgba(84, 199, 236, 0.3);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(84, 199, 236, 0.5);
}

.pagination .active span,
.pagination .active a {
  background: linear-gradient(135deg, #3578e5 0%, #54c7ec 100%) !important;
  color: white !important;
  border-color: #3578e5 !important;
  box-shadow: 0 8px 32px rgba(53, 120, 229, 0.4);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pagination .disabled a,
.pagination .disabled span {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02) !important;
}

/* ============================================================================
   TAB NAVIGATION COMPONENTS
   ============================================================================ */

/* Tab Navigation Styles */
.nav-tabs {
  border-bottom: 2px solid rgba(53, 120, 229, 0.2);
  /* margin-bottom: 20px; */
  background: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-tabs .nav-item {
  margin-bottom: -2px;
}

.nav-tabs .nav-link {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(53, 120, 229, 0.2) !important;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: #ffffff !important;
  padding: 12px 20px;
  margin-right: 4px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-tabs .nav-link:hover {
  background: rgba(84, 199, 236, 0.2) !important;
  color: #54c7ec !important;
  border-color: #54c7ec !important;
  /* transform: translateY(-2px); */
  box-shadow: 0 8px 32px rgba(84, 199, 236, 0.3);
  text-shadow: 0 0 10px rgba(84, 199, 236, 0.5);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #3578e5 0%, #54c7ec 100%) !important;
  color: white !important;
  border-color: #3578e5 !important;
  box-shadow: 0 8px 32px rgba(53, 120, 229, 0.4);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-tabs .nav-link::before {
  
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-tabs .nav-link:hover::before {
  left: 100%;
}

.tab-content {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(53, 120, 229, 0.2) !important;
  border-radius: 8px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
} 

#search-navbar-collapse{

  max-width: 1400px !important;
  margin: auto !important;
}
.ustify-content-left{
  margin: auto !important;
}
.ftlogos{
  width: 100% !important;
}
.justify-content-left{
  justify-content: center;
  align-items: center;
}