/* Web3 Modern UI Styles - Unified Mobile Responsive Version */
:root {
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-light: rgba(255, 255, 255, 0.9);
  --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.1);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glassmorphism Container */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 30px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.glass-card > * {
  position: relative;
  z-index: 2;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Logo and Branding */
.logo {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px 30px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}


.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(79, 172, 254, 0.5);
  filter: brightness(1.1);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Promo Link Styles */
.promo-link {
  text-align: center;
  margin-top: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeInUp 1s ease 1.3s forwards;
}

.promo-link p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.promo-link a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.promo-link a:hover {
  text-decoration: underline;
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.promo-link a::after {
  content: '\2192';
  margin-left: 5px;
  transition: var(--transition);
}

.promo-link a:hover::after {
  transform: translateX(3px);
}

/* Message Styles */
.message {
  padding: 15px 20px;
  border-radius: 15px;
  margin: 20px 0;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInDown 0.5s ease;
}

.message.success {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.3);
}

.message.error {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.3);
}

/* Admin Styles */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-title-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Courier New', monospace;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-time .timezone {
  background: var(--accent-gradient);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .admin-title-section {
    align-items: center;
    text-align: center;
  }
  
  .admin-time {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  .admin-time .timezone {
    font-size: 0.7rem;
    padding: 1px 6px;
  }
}

.admin-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.admin-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.refresh-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.refresh-btn.primary {
  background: rgba(40, 167, 69, 0.3);
}

.refresh-btn.danger {
  background: rgba(220, 53, 69, 0.3);
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Stats Grid - Bootstrap integrated */
.stats-grid {
  margin-bottom: 40px;
}

.stats-grid.row {
  --bs-gutter-x: 1rem;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-light);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}


.stat-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Table Styles */
.submissions-table {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 30px;
}

.table-header {
  background: rgba(79, 172, 254, 0.3);
  backdrop-filter: blur(10px);
  padding: 20px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.table-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 180px 120px;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
  transition: var(--transition);
  color: var(--text-light);
}

.table-row a {
  word-break: break-all;
  transition: var(--transition);
}

.table-row a:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.table-row:last-child {
  border-bottom: none;
}

/* Rank Badge */
.rank-badge {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  font-size: 1.1rem;
  background: var(--accent-gradient);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.rank-badge:hover {
  transform: scale(1.1);
}

.rank-badge.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #2d3436;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #2d3436;
  box-shadow: 0 5px 20px rgba(192, 192, 192, 0.4);
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #d4943e 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(205, 127, 50, 0.4);
}

/* Login Form */
.login-form {
  max-width: 450px;
  margin: 100px auto;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  min-width: 45px;
}

.pagination button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pagination button.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success/Error Icons */
.success-icon, .error-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}

.success-icon {
  background: #28a745;
}

.success-icon::before {
  content: '✓';
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.error-icon {
  background: #dc3545;
}

.error-icon::before {
  content: '✕';
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Simplified floating background */
.floating-bg {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* ========== RESPONSIVE DESIGN ========== */


/* Mobile Devices */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .glass-card {
    padding: 30px 25px;
  }
  
  .logo {
    font-size: 2rem;
  }

  .login-form {
    width: 100%;
    max-width: 400px;
    padding: 25px 20px;
    margin: 0;
  }

  .login-header {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .form-group input {
    padding: 12px 15px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
  }
  
  /* Admin Panel Mobile Styles */
  .admin-container {
    padding: 15px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .admin-title {
    font-size: 1.3rem;
    margin: 0;
  }
  
  .admin-actions {
    justify-content: center;
    gap: 10px;
  }

  .refresh-btn {
    flex: 1;
    max-width: 120px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  

  .stat-card {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
  
  /* Mobile Table Card Layout */
  .submissions-table {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-header {
    display: none; /* Hide desktop headers */
  }

  .table-row {
    display: block;
    grid-template-columns: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
  }

  .table-row > div {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    border: none;
    width: auto;
  }

  /* Mobile table labels */
  .table-row > div:before {
    content: attr(data-label);
    font-weight: 600;
    color: #a855f7;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
    font-size: 0.85rem;
  }

  .table-row > div:nth-child(1):before { content: "Rank: "; }
  .table-row > div:nth-child(2):before { content: "Nama: "; }
  .table-row > div:nth-child(3):before { content: "Email: "; }
  .table-row > div:nth-child(4):before { content: "Waktu: "; }
  .table-row > div:nth-child(5):before { content: "IP: "; }

  .table-row > div:last-child {
    margin-bottom: 0;
  }

  .rank-badge {
    display: inline-block;
    min-width: auto;
    margin: 0;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  /* Mobile Pagination */
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
  }

  .pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  /* Mobile message styles */
  .message {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  /* Mobile loading animation */
  .loading {
    width: 16px;
    height: 16px;
  }

  /* Reduce floating background opacity on mobile */
  .floating-bg {
    opacity: 0.3;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .logo {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .form-group input {
    padding: 12px 15px;
  }
  
  .submit-btn {
    padding: 15px 25px;
    font-size: 1rem;
  }

  .login-form {
    padding: 20px 15px;
  }

  .admin-container {
    padding: 10px;
  }

  .admin-title {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .table-row {
    padding: 12px;
    font-size: 0.85rem;
  }

  .table-row > div:before {
    width: 80px;
    font-size: 0.8rem;
  }

  .refresh-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .rank-badge {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* Large Mobile Devices */
@media (min-width: 481px) and (max-width: 768px) {
  .login-form {
    padding: 30px 25px;
  }

  .admin-title {
    font-size: 1.4rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .table-row {
    padding: 18px;
    font-size: 0.9rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  button, 
  .table-row a,
  .pagination button {
    min-height: 44px;
    min-width: 44px;
  }

  .form-group input {
    min-height: 48px;
  }

  .refresh-btn {
    min-height: 44px;
    padding: 12px 20px;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .container {
    padding: 15px;
  }
  
  .login-form {
    max-width: 500px;
    margin: 50px auto;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .admin-actions {
    justify-content: flex-end;
  }
}

/* Screens under 400px - Ultra Mobile Responsive */
@media (max-width: 400px) {
  .container {
    padding: 10px 8px;
  }

  .login-form {
    padding: 15px 12px;
    margin: 0;
    border-radius: 12px;
  }

  .login-header {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .admin-container {
    padding: 5px;
  }

  .admin-title {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Bootstrap override for stats on mobile */
  .stats-grid.row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  .stats-grid .col-sm-6,
  .stats-grid .col-sm-12,
  .stats-grid .col-lg-4 {
    flex: 0 0 130px;
    max-width: 130px;
  }

  .stat-card {
    padding: 12px 8px;
    border-radius: 12px;
    height: 100%;
    min-height: 80px;
  }

  .stat-number {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }

  .stat-label {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  /* Ultra compact table cards */
  .table-row {
    padding: 8px;
    font-size: 0.75rem;
    border-radius: 8px;
    margin-bottom: 8px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .table-row > div {
    margin-bottom: 5px;
  }

  .table-row > div:before {
    width: 55px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 8px;
  }

  .rank-badge {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
    margin-right: 5px;
  }

  .refresh-btn {
    font-size: 0.7rem;
    padding: 5px 8px;
    max-width: 85px;
    border-radius: 6px;
  }

  .admin-actions {
    gap: 6px;
  }

  /* Compact pagination */
  .pagination button {
    min-width: 35px;
    height: 35px;
    font-size: 0.8rem;
    padding: 0;
  }

  /* Form optimizations */
  .form-group {
    margin-bottom: 15px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 8px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  /* Reduce floating background */
  .floating-bg {
    opacity: 0.2;
  }

  /* Compact message */
  .message {
    padding: 10px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
  }
}

/* Very Small Devices (iPhone SE, etc.) - Keep for compatibility */
@media (max-width: 375px) {
  .admin-title {
    font-size: 0.85rem;
  }

  .stats-grid .col-sm-6,
  .stats-grid .col-sm-12,
  .stats-grid .col-lg-4 {
    flex: 0 0 110px;
    max-width: 110px;
  }

  .table-row > div:before {
    width: 50px;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .table-row > div:before {
    font-weight: 500;
  }

  .rank-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  @media (max-width: 768px) {
    .table-row {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .form-group input {
      background: rgba(255, 255, 255, 0.08);
    }
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .table-row,
  .stat-card,
  .glass-card,
  .submit-btn,
  .refresh-btn {
    animation: none !important;
    transition: none !important;
  }

  .floating-bg::before,
  .floating-bg::after {
    animation: none !important;
  }

  .logo {
    animation: none !important;
  }

  .stat-number {
    animation: none !important;
  }

  body {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .floating-bg,
  .admin-actions,
  .pagination {
    display: none !important;
  }

  .table-row {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }

  .admin-title {
    color: black !important;
  }

  .stat-card {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }

  .glass-card {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }
}