/* Modern Advanced IP Lookup Styles */
:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --surface: #1e293b;
    --surface-hover: #334155;
    --border-color: #334155;
    --border-hover: #475569;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.action-btn.primary {
  background: var(--primary-color);
  color: white;
}

.action-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.action-btn.secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* Search Section */
.search-section {
  margin-bottom: 3rem;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Recent Lookups Carousel Styles */
.input-suggestions {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.carousel-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-indicators {
  display: flex;
  gap: 0.25rem;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: var(--primary-color);
  opacity: 0.7;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-btn {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.clear-history-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.clear-history-btn:hover {
  background: var(--error-color);
  color: white;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
}

.suggestion-item {
  flex: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-card {
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.suggestion-card:hover {
  background: var(--surface);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.suggestion-ip {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.suggestion-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.suggestion-country {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
}

.suggestion-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.suggestion-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.suggestion-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.suggestions-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  gap: 0.5rem;
}

.suggestions-empty i {
  font-size: 1.5rem;
  opacity: 0.5;
}

.suggestions-empty span {
  font-size: 0.875rem;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: var(--primary-dark);
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Results Section */
.results-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.result-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.card-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.placeholder {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
}

/* Info Items */
.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.tool-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: var(--primary-dark);
}

/* Security Section */
.security-section {
  max-width: 800px;
  margin: 0 auto;
}

.security-results {
  margin-top: 2rem;
}

.security-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1rem;
}

.risk-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.risk-low {
  background: rgb(16 185 129 / 0.1);
  color: var(--success-color);
  border: 1px solid rgb(16 185 129 / 0.2);
}

.risk-medium {
  background: rgb(245 158 11 / 0.1);
  color: var(--warning-color);
  border: 1px solid rgb(245 158 11 / 0.2);
}

.risk-high {
  background: rgb(239 68 68 / 0.1);
  color: var(--error-color);
  border: 1px solid rgb(239 68 68 / 0.2);
}

/* Bulk Section */
.bulk-section {
  max-width: 1000px;
  margin: 0 auto;
}

.bulk-input {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.bulk-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  resize: vertical;
  margin-bottom: 1rem;
}

.bulk-textarea::placeholder {
  color: var(--text-muted);
}

.bulk-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.bulk-results {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.bulk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.bulk-table th,
.bulk-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.bulk-table th {
  background: var(--surface-hover);
  font-weight: 600;
  color: var(--text-primary);
}

.bulk-table tr:hover {
  background: var(--surface-hover);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.dashboard-charts {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.chart-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Documentation */
.docs-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.docs-section {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.docs-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.docs-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.docs-section h3 i {
  font-size: 1.25rem;
  opacity: 0.8;
}

.docs-content h4 {
  color: var(--text-primary);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.docs-content h5 {
  color: var(--text-primary);
  margin: 1rem 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.docs-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
  color: var(--text-secondary);
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.docs-content code {
  background: var(--background);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.api-info {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1rem 0;
}

.api-info .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.api-info .info-item:last-child {
  border-bottom: none;
}

.api-info .info-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.api-info .info-item code {
  background: var(--surface);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.code-block {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 1rem 0;
  overflow: hidden;
}

.code-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-header span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.copy-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--background);
}

.code-block code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-item {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0;
}

.faq-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.tool-description {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tool-description h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.tool-description p {
  margin: 0;
  color: var(--text-secondary);
}

.tool-description .tool-features {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.tool-description .tool-features h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.tool-description .tool-features ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.tool-description .tool-features li {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

/* Traceroute Results */
.traceroute-info {
  margin-bottom: 1.5rem;
}

.traceroute-hops {
  margin-top: 1rem;
}

.traceroute-hops h5 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.traceroute-hop {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.traceroute-hop:hover {
  background: var(--surface-hover);
  border-color: var(--primary-color);
}

.hop-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.hop-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hop-ip {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
}

.hop-hostname {
  font-size: 0.85rem;
  font-style: italic;
}

.hop-latency {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.text-danger {
  color: var(--error-color) !important;
}

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

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

.tool-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tool-results {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 200px;
}

/* Loading */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-overlay p {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
}

/* Minecraft Status */
/* Minecraft Status - Modern Responsive Design */
.minecraft-status {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  max-width: 400px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-status-container {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-status-container:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px) scale(1.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border-color);
}

.mc-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mc-status-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.mc-player-count-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', monospace;
  margin-left: 0.5rem;
}

.mc-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bounceIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.mc-status-indicator.online {
  background: var(--success-color);
  box-shadow: 0 0 0 2px rgb(16 185 129 / 0.3);
  animation: pulse-green 2s infinite;
}

.mc-status-indicator.offline {
  background: var(--error-color);
  box-shadow: 0 0 0 2px rgb(239 68 68 / 0.3);
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 2px rgb(16 185 129 / 0.3); }
  50% { box-shadow: 0 0 0 4px rgb(16 185 129 / 0.1); }
}

@keyframes slideInUp {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes minimizeContainer {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes expandContainer {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.mc-minimize-btn,
.mc-refresh-btn {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.mc-minimize-btn:hover,
.mc-refresh-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mc-refresh-btn:hover {
  transform: scale(1.1) rotate(180deg);
}

.mc-minimize-btn:active,
.mc-refresh-btn:active {
  transform: scale(0.95);
}

.mc-status-content {
    padding: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Minimized state */
.minecraft-status.minimized {
  max-width: 300px;
  animation: minimizeContainer 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.minecraft-status.minimized .mc-status-content {
  display: none;
}

.minecraft-status.minimized .mc-status-container {
  max-height: none;
}

.minecraft-status.minimized .mc-status-header {
  border-bottom: none;
  padding: 0.5rem 0.75rem;
}

.minecraft-status.minimized .mc-refresh-btn {
  display: none;
}

.minecraft-status.minimized .mc-status-title {
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  margin-right: 1rem;
}

.minecraft-status.minimized .mc-status-title span {
  font-size: 0.875rem;
  white-space: nowrap;
}

.minecraft-status.minimized .mc-player-count-tag {
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  margin-right: 0.5rem;
}

.minecraft-status.minimized .mc-status-indicator {
  width: 8px;
  height: 8px;
}

.mc-server-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mc-server-icon-container {
  flex-shrink: 0;
}

.mc-server-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  image-rendering: pixelated;
  border: 1px solid var(--border-color);
}

.mc-server-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.mc-server-details {
  flex: 1;
  min-width: 0;
}

.mc-server-ip {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
  background: var(--surface-hover);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.mc-server-ip:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mc-copy-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.mc-server-ip:hover .mc-copy-icon {
  opacity: 1;
}


.mc-version-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mc-version {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-hover);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Monaco', 'Menlo', monospace;
}

.mc-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mc-status-badge.online {
  background: rgb(16 185 129 / 0.1);
  color: var(--success-color);
}

.mc-status-badge.offline {
  background: rgb(239 68 68 / 0.1);
  color: var(--error-color);
}

.mc-discord-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #5865f2;
  background: rgb(88 101 242 / 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border: 1px solid rgb(88 101 242 / 0.2);
}

.mc-discord-link:hover {
  background: #5865f2;
  color: white;
  border-color: #5865f2;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgb(88 101 242 / 0.3);
}

.mc-discord-link i {
  font-size: 0.8rem;
}




.mc-offline-message,
.mc-error-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.mc-error-message {
  background: rgb(239 68 68 / 0.05);
  border-color: rgb(239 68 68 / 0.2);
}

.mc-offline-message i,
.mc-error-message i {
  color: var(--error-color);
  font-size: 1.25rem;
}

.mc-error-details {
  flex: 1;
}

.mc-error-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.mc-error-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mc-status-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite, bounceIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

.mc-loader-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--success-color);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-brand {
  width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-brand h1 {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.2;
  }

  .logo {
    width: 40px;
    height: 40px;
    padding: 0.4rem;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  .nav-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .nav-btn {
    padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
    min-width: auto;
    flex-direction: column;
    text-align: center;
    min-height: 60px;
    justify-content: center;
  }

  .nav-btn span {
    display: block;
    font-size: 0.7rem;
  margin-top: 0.25rem;
  }

  .nav-btn i {
    font-size: 1.1rem;
  }

  .page-header {
    margin-bottom: 2rem;
  }

  .page-header h2 {
    font-size: 1.75rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .quick-actions {
    flex-direction: column;
  align-items: center;
    gap: 0.75rem;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .carousel-title {
    flex-direction: column;
  gap: 0.5rem;
    align-items: flex-start;
  }

  .carousel-controls {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .carousel-slide {
    flex-direction: column;
    gap: 0.5rem;
  }

  .suggestion-item {
    width: 100%;
  }

  .suggestion-card {
    min-height: 120px;
  }

  .suggestion-ip {
    font-size: 0.8rem;
  }

  .suggestion-country {
    font-size: 0.75rem;
  }

  .suggestion-time {
    font-size: 0.65rem;
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .search-btn {
    justify-content: center;
    width: 100%;
  }

  .results-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .result-card {
    padding: 1.5rem;
  }

  .card-header {
    padding: 1rem 1rem 0;
    margin-bottom: 1rem;
  }

  .card-content {
    padding: 0 1rem 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .chart-card {
    padding: 1.5rem;
  }

  .bulk-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .bulk-textarea {
    min-height: 150px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .tool-input {
    flex-direction: column;
    gap: 0.75rem;
  }

  .minecraft-status {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 2rem 0;
    width: 100%;
    max-width: none;
  }

  .mc-status-container {
    width: 100%;
  }

  .mc-status-header {
    padding: 0.75rem 1rem;
  }

  .mc-status-content {
    padding: 1rem;
  }

  .mc-server-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .mc-server-details {
    width: 100%;
  }

  .mc-version-info {
    justify-content: center;
  }


  /* Fix table responsiveness */
  .bulk-table {
    font-size: 0.8rem;
  }

  .bulk-table th,
  .bulk-table td {
    padding: 0.5rem 0.25rem;
  }

  /* Hide some columns on mobile */
  .bulk-table th:nth-child(3),
  .bulk-table td:nth-child(3),
  .bulk-table th:nth-child(4),
  .bulk-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Hide minimize and refresh buttons on mobile */
  .minecraft-status .mc-minimize-btn,
  .minecraft-status .mc-refresh-btn {
    display: none !important;
  }

  .nav-container {
    padding: 0.75rem;
  }

  .nav-brand {
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-brand h1 {
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.2;
  }

  .logo {
    width: 36px;
    height: 36px;
    padding: 0.3rem;
  }

  .logo-img {
    width: 26px;
    height: 26px;
  }

  .nav-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    max-width: 300px;
  }

  .nav-btn {
    padding: 0.6rem 0.4rem;
    font-size: 0.7rem;
    min-height: 55px;
  }

  .nav-btn span {
    font-size: 0.65rem;
  }

  .nav-btn i {
  font-size: 1rem;
}

  .page-header {
    margin-bottom: 1.5rem;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .result-card {
    padding: 1rem;
  }

  .card-header {
    padding: 0.75rem 0.75rem 0;
    margin-bottom: 0.75rem;
  }

  .card-content {
    padding: 0 0.75rem 0.75rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .stat-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .stat-content h3 {
    font-size: 1.5rem;
  }

  .chart-card {
    padding: 1rem;
  }

  .bulk-input {
    padding: 1rem;
  }

  .bulk-textarea {
    min-height: 120px;
    font-size: 14px;
  }

  .modal-content {
    width: 98%;
    margin: 0.5rem;
  }

  .modal-header {
    padding: 0.75rem 1rem;
  }

  .modal-body {
    padding: 0.75rem;
  }

  .minecraft-status {
    position: relative;
    margin: 1rem 0;
    bottom: auto;
    right: auto;
    left: auto;
    max-width: none;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .mc-status-container {
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .mc-status-header {
    padding: 0.5rem 0.75rem;
  }

  .mc-status-content {
    padding: 0.75rem;
  }

  .mc-status-title {
    font-size: 0.8rem;
  }

  .mc-player-count-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  .mc-server-icon,
  .mc-server-icon-placeholder {
    width: 40px;
    height: 40px;
  }

  .mc-server-ip {
    font-size: 0.8rem;
    padding: 0.4rem;
  }


  .mc-version {
    font-size: 0.7rem;
  }

  .mc-status-badge {
    font-size: 0.65rem;
  }

  .mc-discord-link {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }

  .mc-discord-link i {
    font-size: 0.7rem;
  }



  .mc-player-name,
  .mc-more-players {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .mc-minimize-btn,
.mc-refresh-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .minecraft-status.minimized {
    max-width: 260px;
  }

  .minecraft-status.minimized .mc-status-header {
    padding: 0.4rem 0.6rem;
  }

  .minecraft-status.minimized .mc-status-title span {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .minecraft-status.minimized .mc-player-count-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    margin-right: 0.4rem;
  }

  .copy-notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }


  .mc-players-list {
    max-width: 100%;
    overflow: hidden;
  }

  .mc-player-name,
  .mc-more-players {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
  .minecraft-status {
    padding: 0 0.5rem;
  }

  .mc-status-header {
    padding: 0.4rem 0.5rem;
  }

  .mc-status-content {
  padding: 0.5rem;
  }

  .mc-status-title {
    font-size: 0.75rem;
  }

  .mc-player-count-tag {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }

  .mc-server-icon,
  .mc-server-icon-placeholder {
    width: 36px;
    height: 36px;
  }

  .mc-server-ip {
    font-size: 0.75rem;
    padding: 0.3rem;
  }


  .mc-version {
    font-size: 0.65rem;
  }

  .mc-status-badge {
    font-size: 0.6rem;
  }

  .mc-discord-link {
    font-size: 0.55rem;
    padding: 0.15rem 0.3rem;
  }

  .mc-discord-link i {
    font-size: 0.65rem;
  }


  .mc-minimize-btn,
  .mc-refresh-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .minecraft-status.minimized {
    max-width: 240px;
  }

  /* On mobile, always show expanded state */
  .minecraft-status {
    max-width: 100%;
    position: relative;
    bottom: auto;
    right: auto;
    margin: 1rem;
  }

  .minecraft-status.minimized .mc-status-header {
    padding: 0.35rem 0.5rem;
  }

  .minecraft-status.minimized .mc-status-title span {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .minecraft-status.minimized .mc-player-count-tag {
    font-size: 0.65rem;
    padding: 0.075rem 0.25rem;
    margin-right: 0.35rem;
  }

  .minecraft-status.minimized .mc-minimize-btn {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }

  /* Always show content on mobile */
  .minecraft-status.minimized .mc-status-content {
    display: block;
  }
}

/* Make buttons more touch-friendly */
@media (max-width: 480px) {
  .nav-btn {
    padding: 0.75rem;
    min-height: 44px;
  }

  .action-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
  }

  .search-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
  }

  .tool-btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
  }

  /* Improve text readability */
  .info-label {
    font-size: 0.7rem;
  }

  .info-value {
    font-size: 0.8rem;
  }

  /* Better spacing for small screens */
  .quick-actions {
    gap: 0.5rem;
  }

  .bulk-actions {
    gap: 0.5rem;
  }

  .tools-grid {
    gap: 1rem;
  }

  .dashboard-grid {
    gap: 1rem;
  }

  .dashboard-charts {
    gap: 1rem;
  }

  /* Documentation responsive */
  .docs-grid {
    gap: 1.5rem;
  }

  .docs-section {
    padding: 1.5rem;
  }

  .docs-section h3 {
    font-size: 1.25rem;
  }

  .docs-content h4 {
    font-size: 1.1rem;
  }

  .api-info {
    padding: 1rem;
  }

  .api-info .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .code-block {
    margin: 0.75rem 0;
  }

  .code-header {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .code-block pre {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .faq-item {
    padding: 0.75rem;
  }
}

/* Additional Mobile Improvements */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }

  /* Improve touch targets */
  .nav-btn,
  .action-btn,
  .search-btn,
  .tool-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better text wrapping */
  .info-value {
    word-break: break-word;
    hyphens: auto;
  }

  /* Improve modal on mobile */
  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    border-radius: var(--radius-md);
  }

  /* Better table handling */
  .bulk-results {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bulk-table {
    min-width: 100%;
  }

  /* Improve loading overlay */
  .loading-overlay {
    padding: 1rem;
  }

  .loading-overlay p {
    font-size: 1rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .nav-container {
    padding: 0.5rem;
  }

  .nav-brand {
    flex-direction: column;
    gap: 0.3rem;
  }

  .nav-brand h1 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
  }

  .logo {
    width: 32px;
    height: 32px;
    padding: 0.25rem;
  }

  .logo-img {
    width: 24px;
    height: 24px;
  }

  .nav-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    max-width: 280px;
  }

  .nav-btn {
    padding: 0.5rem 0.3rem;
    font-size: 0.65rem;
    min-height: 50px;
  }

  .nav-btn span {
    font-size: 0.6rem;
  }

  .nav-btn i {
    font-size: 0.9rem;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-container {
    flex-direction: row;
    padding: 0.5rem 1rem;
    align-items: center;
  }

  .nav-brand {
    flex-direction: row;
    gap: 0.5rem;
    width: auto;
    justify-content: flex-start;
  }

  .nav-brand h1 {
    font-size: 1rem;
    white-space: nowrap;
  }

  .logo {
    width: 32px;
    height: 32px;
    padding: 0.25rem;
  }

  .logo-img {
    width: 24px;
    height: 24px;
  }

  .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }

  .nav-btn {
    flex-shrink: 0;
    flex-direction: row;
    padding: 0.5rem 0.75rem;
    min-width: auto;
  }

  .nav-btn span {
    display: inline;
    margin-top: 0;
    margin-left: 0.25rem;
  }

  .page-header {
    margin-bottom: 1rem;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 1rem 0;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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