@import url(https://fonts.googleapis.com/css?family=Exo+2:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #1e293b;
  --accent-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-bg: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(59, 130, 246, 0.2);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --hover-bg: rgba(59, 130, 246, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(15, 23, 42, 0.7) 100%),
    url("../images/background.png");
  background-attachment: fixed;
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  font-family: "Exo 2", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-light);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
  z-index: -2;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-particle {
  position: absolute;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.bg-particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.bg-particle:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 80%;
  animation-delay: -5s;
}

.bg-particle:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}

.bg-particle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 70%;
  animation-delay: -15s;
}

.bg-particle:nth-child(5) {
  width: 90px;
  height: 90px;
  top: 10%;
  left: 50%;
  animation-delay: -20s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-100px) rotate(180deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

/* ===== GLASS EFFECTS ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-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.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.glass-mini {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.glass-mini:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

/* ===== SIMPLE TABLE DESIGN ===== */
.glass-table {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-table {
  --bs-table-bg: transparent;
  border: none;
  font-size: 0.9rem;
  width: 100%;
  margin: 0;
}

.table-header-modern th {
  background: var(--secondary-color);
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--primary-color);
}

.modern-table tbody tr {
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
  background: var(--hover-bg);
  transform: translateX(4px);
}

.modern-table tbody td {
  padding: 0.875rem 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
  border: none;
}

/* ===== BADGES AND ELEMENTS ===== */
.status-badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.game-badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.ip-address {
  font-family: 'Courier New', monospace;
  background: rgba(59, 130, 246, 0.15);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-light);
}

.ip-address:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.server-name {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  color: var(--text-light);
}

.btn-group .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.btn-outline-secondary:hover {
  background: var(--text-muted);
  border-color: var(--text-muted);
  color: var(--dark-bg);
  transform: translateY(-1px);
}

/* Enhanced table responsive container */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 8px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Scroll indicator for mobile */
.scroll-indicator {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  margin: 0.5rem 0;
  padding: 0.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-logo-container {
  position: relative;
  display: inline-block;
}

.hero-logo {
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.3));
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 40px rgba(59, 130, 246, 0.5));
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.text-gradient {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.text-light-muted {
  color: var(--text-muted) !important;
}

/* ===== SERVERS SECTION ===== */
.servers-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.servers-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.progress-container {
  margin-bottom: 1.5rem;
}

.progress-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.progress-modern {
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-bar-modern {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  transition: width 1s ease;
}

.stats-grid .stat-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stats-grid .stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  transition: all 0.3s ease;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.social-links {
  gap: 0.75rem;
}

.social-btn-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-btn-mini:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
  opacity: 0;
  transition: all 0.8s ease;
}

.animate-fade-in.animate-in {
  opacity: 1;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-up-delay {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
}

.animate-slide-up-delay.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-up-delay-2 {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.4s;
}

.animate-slide-up-delay-2.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in-delay-3 {
  opacity: 0;
  transition: all 0.8s ease 0.6s;
}

.animate-fade-in-delay-3.animate-in {
  opacity: 1;
}

.animate-fade-in-delay-4 {
  opacity: 0;
  transition: all 0.4s ease 0.3s;
}

.animate-fade-in-delay-4.animate-in {
  opacity: 1;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== LEGACY STYLES (Updated) ===== */
.table {
  --bs-table-bg: transparent;
  backdrop-filter: blur(15px);
  border: transparent;
  font-size: 16px;
  color: var(--text-light);
}

.copy-success {
  position: relative;
}

.copy-success .copy-message {
  display: none;
  position: absolute;
  background: var(--accent-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.copy-success .copy-message.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.alert-gradient {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  text-shadow: 0px 2px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--danger-color);
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  color: var(--text-light);
}

.centeredContent {
  display: grid;
  align-items: center;
}

.ipaddress {
  background: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 600;
  letter-spacing: 1px;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ipaddress:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.iconshover {
  transition: all 0.3s ease;
}

.iconshover:hover {
  transform: translateY(-2px);
  box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.2);
}

.logozoom {
  transition: all 0.3s ease;
}

.logozoom:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media only screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .glass-card {
    margin: 0 0.5rem;
  }
  
  .logozoom {
    max-width: 300px;
    margin-top: 1rem;
  }
  
  .bg-particle {
    display: none;
  }

  .modern-table {
    font-size: 0.8rem;
    min-width: 800px;
  }

  .table-responsive::-webkit-scrollbar {
    height: 10px;
  }

  .server-name {
    max-width: 180px;
  }

  .servers-section {
    padding: 1rem;
  }

  .status-badge, .game-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .ip-address {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .btn-group .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media only screen and (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .modern-table {
    font-size: 0.75rem;
    min-width: 900px;
  }

  .table-responsive::-webkit-scrollbar {
    height: 12px;
  }

  .server-name {
    max-width: 140px;
  }

  .servers-section {
    padding: 0.75rem;
  }

  .glass-card {
    margin: 20px 0.25rem;
  }
}

/* ===== MODERN NOTIFICATION SYSTEM ===== */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
}

.modern-notification {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(16, 185, 129, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 500;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modern-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.modern-notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

.modern-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: notificationShine 2s ease-in-out;
}

@keyframes notificationShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notification-message {
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.3;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 16px 16px;
  animation: notificationProgress 4s linear;
}

@keyframes notificationProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Success notification variant */
.modern-notification.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
}

/* Error notification variant */
.modern-notification.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
}

/* Info notification variant */
.modern-notification.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .modern-notification {
    min-width: auto;
    max-width: none;
    margin: 0 0 1rem 0;
  }
  
  .modern-notification {
    transform: translateY(-100px);
  }
  
  .modern-notification.show {
    transform: translateY(0);
  }
  
  .modern-notification.hide {
    transform: translateY(-100px);
  }
}
