/* Modal styles now in global style.css */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group textarea {
  width: 100%;
  min-height: 150px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
}

.bug-report-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.bug-report-item.pending {
  border-left: 4px solid #fbbf24;
}

.bug-report-item.approved {
  border-left: 4px solid #10b981;
}

.bug-report-item.rejected {
  border-left: 4px solid #ef4444;
}

.bug-report-item.claimed {
  border-left: 4px solid #6366f1;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending { background: #fbbf24; color: #000; }
.status-badge.approved { background: #10b981; color: #fff; }
.status-badge.rejected { background: #ef4444; color: #fff; }
.status-badge.claimed { background: #6366f1; color: #fff; }

/* Support Server Modal */
.support-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.support-modal.active {
  display: flex;
}

.support-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.support-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.support-modal-close:hover {
  color: var(--text-primary);
}

.support-modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.support-modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.support-modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.support-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.support-feature {
  background: rgba(96, 165, 250, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-primary);
}

.support-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.support-feature-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.support-feature-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.support-actions {
  display: flex;
  gap: 1rem;
}

.support-actions button,
.support-actions a {
  flex: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .navbar-user {
    gap: 0.5rem;
  }

  /* Main content padding - reduce to prevent border cutoff */
  .container {
    padding: 0 0.75rem;
  }

  .main-content {
    padding-top: var(--navbar-offset);
    padding-bottom: 1rem;
  }

  /* Ensure no overflow on cards */
  .server-card,
  .stat-box {
    margin: 0;
    max-width: 100%;
  }

  /* User Servers Section - Stack buttons vertically */
  #userServersSection > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem;
  }

  #userServersSection > div:first-child > div:last-child {
    width: 100%;
    flex-direction: column !important;
  }

  #userServersSection > div:first-child > div:last-child button {
    width: 100% !important;
  }

  /* Admin section header */
  .admin-header {
    padding: 1rem;
  }

  .admin-header h1 {
    font-size: 1.5rem;
  }

  /* Stats summary */
  .stats-summary {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Search bar */
  .search-bar {
    margin: 1rem 0;
  }

  /* Server cards - stack in single column */
  .servers-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Server card adjustments */
  .server-card {
    padding: 1rem;
  }

  .server-icon {
    width: 60px;
    height: 60px;
  }

  .server-name {
    font-size: 1.1rem;
  }

  /* Admin banner */
  .admin-banner {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
  /* Even tighter margins for very small screens */
  .container {
    padding: 0 0.5rem;
  }

  .admin-header h1 {
    font-size: 1.25rem;
  }

  .stat-box {
    padding: 1rem;
  }

  .stat-box-value {
    font-size: 1.75rem;
  }

  .server-card {
    padding: 0.875rem;
  }

  /* Support Modal Mobile */
  .support-modal-content {
    padding: 2rem 1.5rem;
  }

  .support-modal-title {
    font-size: 1.5rem;
  }

  .support-features {
    grid-template-columns: 1fr;
  }

  .support-actions {
    flex-direction: column;
  }
}

/* Locked Dashboard Overlay - Glassmorphism */
.locked-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.locked-overlay.active { display: flex; }

.locked-content {
  text-align: center;
  max-width: 500px;
  padding: 3rem;
  background: rgba(28, 33, 40, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid #000000;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.locked-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.locked-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.locked-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.locked-footer {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.locked-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.locked-footer a:hover {
  text-decoration: underline;
}

/* Refresh Hint */
.refresh-hint {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-login-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.9), rgba(71, 82, 196, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4),
              0 0 20px rgba(88, 101, 242, 0.3);
}

.btn-login-discord:hover {
  background: linear-gradient(135deg, rgba(71, 82, 196, 0.95), rgba(60, 69, 165, 0.95));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.5),
              0 0 30px rgba(88, 101, 242, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-login-discord svg {
  flex-shrink: 0;
}

/* Mobile Locked Screen */
@media (max-width: 768px) {
  .locked-content {
    padding: 2rem;
    max-width: 90%;
  }

  .locked-icon {
    font-size: 3rem;
  }

  .locked-title {
    font-size: 1.5rem;
  }

  .locked-subtitle {
    font-size: 1rem;
  }

  .btn-login-discord {
    width: 100%;
    justify-content: center;
  }
}
