/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #090b12;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex-grow: 1;
  padding: 30px;
  background-color: #0d101b;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #0d101b;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgb(21 25 37);
}

.logo {
  padding: 0 20px;
  margin-bottom: 30px;
  max-width: 300px;
}

.logo img {
  max-width: 100%;
  height: auto;
}

/* Menu */
.menu-sections {
  margin-bottom: 20px;
}

.menu-sections h3 {
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0 20px;
  margin: 20px 0 10px;
}

.menu-sections ul {
  list-style: none;
}

.menu-sections li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #d1d5db;
  text-decoration: none;
  transition: background-color 0.2s;
}

.menu-sections li.active a {
  background-color: #1a1f2e;
  color: #ffffff;
}

.menu-sections li a:hover {
  background-color: #1a1f2e;
}

.menu-sections li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  overflow-x: auto;
  white-space: nowrap;
}

.top-bar h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Cards */
.card {
  background-color: #1a1f2e;
  border-radius: 8px;
  border: 1px solid #2d3748;
  margin-bottom: 20px;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid #2d3748;
}

.card-header h2 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.card-body {
  padding: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #e2e8f0;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  background: #0e101a;
  border: 1px solid #2d3748;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn-primary {
  background: #3b82f6;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: #2563eb;
}

.logout-btn {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Game Server Selection */
.form-group select[multiple] {
  height: auto !important;
  min-height: 120px !important;
  padding: 8px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #fff !important;
}

.form-group select[multiple] option {
  padding: 12px !important;
  margin: 2px 0 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 24px 24px !important;
  padding-left: 48px !important;
  background-color: transparent !important;
}

.form-group select[multiple] option:hover,
.form-group select[multiple] option:checked,
.form-group select[multiple] option:focus,
.form-group select[multiple] option:active {
  background-color: rgba(49, 130, 206, 0.15) !important;
  color: #fff !important;
}

/* Game-specific icons */
.form-group select option[value="fivem"],
.form-group select option[value="fxserverproxy"] {
  background-image: url('img/games/fivem.webp');
}

.form-group select option[value="minecraft"],
.form-group select option[value="minecraftserverproxy"] {
  background-image: url('img/games/minecraft.webp');
}

.form-group select option[value="rust"] {
  background-image: url('img/games/rust.webp');
}

.form-group select option[value="gmod"] {
  background-image: url('img/games/gmod.webp');
}

/* IP Protection Styles */
.ip-protection {
  margin-bottom: 30px;
}

.ip-protection h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #e5e7eb;
}

.ip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.ip-item {
  background-color: #1a1f2e;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #2d3748;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ip-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ip-item h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1rem;
}

.ip-item p {
  margin-bottom: 5px;
  color: #d1d5db;
  font-size: 0.9rem;
}

.ip-item strong {
  color: #9ca3af;
}

/* Actions */
.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  padding: 10px 15px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.actions button:hover {
  background-color: #e53737;
  transform: scale(1.05);
}

/* IP Selection Styles */
.ip-selection {
  margin-bottom: 30px;
}

.ip-selection h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.ip-selection select {
  width: 100%;
  padding: 10px;
  background-color: #1a1f2e;
  color: #ffffff;
  border: 1px solid #2d3748;
  border-radius: 5px;
}

/* Tab Styles */
.tab {
  overflow: hidden;
  border-bottom: 1px solid #1e2233;
  background-color: transparent;
  margin-bottom: 20px;
}

.tab button {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 24px;
  transition: 0.2s;
  color: #8b8d98;
  font-size: 14px;
  position: relative;
}

.tab button:hover {
  color: #ffffff;
}

.tab button.active {
  color: #ffffff;
  background-color: transparent;
}

.tab button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.2s;
}

.tab button.active::after {
  background-color: #0066ff;
}

/* Tab Content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.tabcontent.active {
  display: block;
}

/* Settings Section Styles */
.settings-section {
  margin-bottom: 30px;
}

.settings-section input[type="number"] {
  width: 100%;
  padding: 12px;
  background-color: #151725;
  color: #ffffff;
  border: 1px solid #1e2233;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
}

.settings-section label {
  display: block;
  color: #8b8d98;
  font-size: 13px;
  margin-bottom: 12px;
}

.settings-section p {
  color: #8b8d98;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 20px;
}

/* Toggle Switch Styles */
.toggle-switch {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #1e2233;
  border-radius: 12px;
  cursor: pointer;
  margin: 0 12px 0 0;
}

.toggle-switch label::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle-switch input[type="checkbox"]:checked + label {
  background-color: #0066ff;
}

.toggle-switch input[type="checkbox"]:checked + label::after {
  transform: translateX(20px);
}

.toggle-switch .toggle-label {
  color: #ffffff;
  font-size: 14px;
  margin: 0;
}

/* Button Styles */
.settings-button {
  background-color: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.settings-button:hover {
  background-color: #0052cc;
}

/* Attacks List Styles */
.attacks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.attack-item {
  display: grid;
  grid-template-columns: 100px 140px auto 1fr 140px 24px;
  gap: 20px;
  align-items: center;
  padding: 15px 20px;
  background-color: #151725;
  margin-bottom: 1px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.attack-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.attack-date {
  color: #8b8d98;
  font-size: 13px;
}

.attack-time {
  color: #8b8d98;
  font-size: 13px;
}

.mitigation-status {
  display: flex;
  align-items: center;
  background-color: rgba(76, 175, 80, 0.1);
  font-size: 0.9rem;
  color: rgb(76, 175, 80);
  justify-self: end;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.mitigation-status.mitigating {
  background-color: rgba(241, 196, 15, 0.1);
  color: rgb(241, 196, 15);
}

.mitigation-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(76, 175, 80, 0.2),
    transparent
  );
  animation: mitigation-shimmer 6s ease-in-out infinite;
}

.mitigation-status.mitigating::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(241, 196, 15, 0.2),
    transparent
  );
}

@keyframes mitigation-shimmer {
  0% {
    transform: translateX(-100%);
  }
  30% {
    transform: translateX(100%);
  }
  30.1% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(100%);
  }
  60.1% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.attack-signatures {
  color: #ffffff;
  font-size: 13px;
}

.attack-ip {
  color: #8b8d98;
  font-size: 13px;
  text-align: right;
}

.chevron {
  color: #8b8d98;
  font-size: 13px;
}

.chevron i {
  transition: transform 0.3s;
}

.chevron.open i {
  transform: rotate(180deg);
}

/* Attack Details */
.attack-details {
  background: #0d101b;
  border: 1px solid #2d3748;
  border-radius: 0 0 8px 8px;
  margin: 0 10px 10px 10px;
  padding: 15px;
}

.detail-row {
  padding: 8px 0;
  color: #ffffff;
}

.detail-row span {
  color: #8b8d98;
  margin-right: 8px;
}

.signatures-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.signatures-list li {
  background: #151725;
  margin: 5px 0;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.signatures-list strong {
  color: #ffffff;
}

/* Stats Styling */
.stats-container {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-text {
  color: #8b8d98;
  text-align: center;
  padding: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-box {
  background: #151725;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s;
}

.stat-box:hover {
  transform: translateY(-2px);
}

.stat-title {
  color: #8b8d98;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 0 15px;
}

.stat-box {
  background-color: #1a1f2e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #2d3748;
  transition: transform 0.2s;
}

.stat-box:hover {
  transform: translateY(-2px);
}

.stat-title {
  color: #8b8d98;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-subtitle {
  color: #8b8d98;
  font-size: 12px;
}

/* Stat Card Styles */
.stat-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, background-color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 15px;
}

.stat-title {
  color: #8b8d98;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 5px;
}

.stat-subtitle {
  color: #8b8d98;
  font-size: 12px;
}

/* Message Styles */
.message-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: none;
  margin: 20px;
  transition: opacity 0.3s ease-out;
}

.message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 8px;
  background: rgba(17, 25, 40, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 16px;
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
}

.message i {
  font-size: 20px;
}

.message.success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.95),
    rgba(6, 148, 97, 0.95)
  );
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.95),
    rgba(201, 24, 24, 0.95)
  );
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

/* Logout Button */
.logout-btn {
  background-color: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logout-btn:hover {
  background-color: rgba(255, 68, 68, 0.2);
}

.logout-btn i {
  font-size: 16px;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.page-link {
  padding: 8px 12px;
  background-color: #1a1f2e;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.page-link:hover {
  background-color: #2d3748;
}

.page-link.active {
  background-color: #2563eb;
  color: white;
}

.page-info {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* GEO/ASN Filter Styles */
.filter-section {
  margin-bottom: 32px;
}

.filter-section h2 {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
}

.filter-section p {
  color: #6c7293;
  font-size: 14px;
  margin-bottom: 24px;
}

.block-mode {
  margin-bottom: 24px;
}

.block-mode label {
  display: block;
  color: #6c7293;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Custom Select Styles */
select {
  background-color: rgba(30, 31, 37, 0.5);
  color: #ffffff;
  border: none;
  padding: 8px 35px 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  width: auto;
  min-width: 120px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  backdrop-filter: blur(10px);
}

select:hover {
  background-color: rgba(40, 41, 47, 0.7);
}

select:focus {
  outline: none;
  background-color: rgba(45, 46, 52, 0.8);
}

select option {
  background-color: #1e1f25;
  color: #ffffff;
  padding: 8px;
}

/* Country List Styles */
.country-list {
  background: #151725;
  border: 1px solid #30363d;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.country-list label {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  border-bottom: 1px solid #30363d;
  cursor: pointer;
  transition: background-color 0.2s;
}

.country-list label:hover {
  background: rgba(255, 255, 255, 0.03);
}

.country-list label:last-child {
  border-bottom: none;
}

.country-group-header {
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c7293;
  background: #151724;
  border-bottom: 1px solid #30363d;
}

.country-blocked {
  background: rgba(13, 110, 253, 0.05);
}

.country-blocked:hover {
  background: rgba(13, 110, 253, 0.08) !important;
}

/* Custom Checkbox Styles */
.country-list input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #151725;
  position: relative;
  cursor: pointer;
  margin-right: 12px;
}

.country-list input[type="checkbox"]:checked {
  background: #0d6efd;
  border-color: #0d6efd;
}

.country-list input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.country-list input[type="checkbox"]:indeterminate {
  background: #0d6efd;
  border-color: #0d6efd;
}

.country-list input[type="checkbox"]:indeterminate::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 8px;
  height: 2px;
  background: white;
}

/* Loading Spinner */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  width: 100%;
  text-align: center;
}

.loading-spinner {
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  border-top: 3px solid #3b82f6;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  color: #d1d5db;
  font-size: 1rem;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #1a1f2e;
  }

  .main-content {
    padding: 20px;
  }

  .ip-list {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #090b12;
  color: #f5f5f5;
}

/* Search Box and Input Styles */
.search-box {
  position: relative;
  margin-bottom: 16px;
  margin-top: 20px;
}

.search-box input {
  width: 100%;
  padding: 8px 16px;
  background: #151725;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  height: 36px;
}

.search-box input::placeholder {
  color: #6c7293;
  opacity: 0.7;
  line-height: 20px;
}

.search-box input:focus {
  outline: none;
  border-color: #2563eb;
}

/* Input Styles */
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px 12px;
  background: #151725;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* GEO/ASN Filter Styles */
.filter-section {
  margin-bottom: 32px;
}

.filter-section h2 {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
}

.filter-section p {
  color: #6c7293;
  font-size: 14px;
  margin-bottom: 24px;
}

.block-mode {
  margin-bottom: 24px;
}

.block-mode label {
  display: block;
  color: #6c7293;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Protocol Thresholds */
.protocol-thresholds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.protection-section {
  background: #151725;
  border: 1px solid #2d3748;
  border-radius: 6px;
  padding: 15px;
}

.protection-section h2 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 15px;
}

.threshold-item {
  margin-bottom: 15px;
}

.threshold-item:last-child {
  margin-bottom: 0;
}

.threshold-label {
  color: #8b8d98;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.threshold-input {
  width: 100%;
  max-width: 120px;
  padding: 6px 10px;
  background-color: #0d101b;
  border: 1px solid #2d3748;
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.9rem;
}

.threshold-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.threshold-description {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 3px;
}

.save-button {
  background-color: #0066ff;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.save-button:hover {
  background-color: #0052cc;
}

.thresholds-header {
  margin-bottom: 10px;
}

.thresholds-header h2 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.thresholds-header p {
  color: #8b8d98;
  font-size: 0.9rem;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.protection-section {
  background: #151725;
  border: 1px solid #2d3748;
  border-radius: 6px;
  padding: 20px;
}

.protection-section h3 {
  color: #fff;
  font-size: 1.1em;
  margin: 0 0 15px 0;
}

.setting-group {
  margin-bottom: 15px;
}

.setting-group:last-child {
  margin-bottom: 0;
}

.setting-group label {
  display: block;
  color: #a0aec0;
  margin-bottom: 5px;
}

.setting-group input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  background: #0e101a;
  border: 1px solid #2d3748;
  border-radius: 4px;
  color: #fff;
  font-size: 1em;
}

.setting-description {
  color: #718096;
  font-size: 0.9em;
  margin-top: 5px;
  line-height: 1.4;
}

/* Filters Section */
.filters-section {
  padding: 20px;
}

.filters-header {
  margin-bottom: 30px;
}

.filters-header h2 {
  color: #fff;
  margin-bottom: 10px;
}

.filters-header p {
  color: #718096;
  margin-bottom: 15px;
}

.default-action-select {
  width: 200px;
  padding: 8px 12px;
  background: #1a202c;
  border: 1px solid #2d3748;
  color: #fff;
  font-size: 1em;
}

.profiles-section {
  margin-top: 40px;
}

.profiles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.profiles-header h2 {
  color: #fff;
  margin: 0;
}

.profiles-header p {
  color: #718096;
  margin: 0;
  flex-grow: 1;
  margin-left: 20px;
}

.create-profile-btn {
  background: #0066ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.create-profile-btn:hover {
  background: #0052cc;
}

.delete-profiles-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  transition: background-color 0.2s;
}

.delete-profiles-btn:hover {
  background: #c82333;
}

.profiles-table {
  background: #151725;
  border: 1px solid #2d3748;
  border-radius: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.profiles-table table {
  width: 100%;
  border-collapse: collapse;
}

.profiles-table th {
  background: #1a202c;
  color: #a0aec0;
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  border-bottom: 1px solid #2d3748;
}

.profiles-table td {
  color: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #2d3748;
}

.profiles-table tr:last-child td {
  border-bottom: none;
}

.action-btn {
  background: transparent;
  color: #a0aec0;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.action-btn:hover {
  background: #2d3748;
}

.no-profiles {
  text-align: center;
  color: #718096;
  padding: 40px !important;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  color: #718096;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rows-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rows-per-page select {
  background: #1a202c;
  border: 1px solid #2d3748;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

.page-controls {
  display: flex;
  gap: 4px;
}

.page-controls button {
  background: #1a202c;
  border: 1px solid #2d3748;
  color: #718096;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.page-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-controls button:not(:disabled):hover {
  background: #2d3748;
  color: #fff;
}

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

.modal-content {
  position: relative;
  background-color: #1a202c;
  margin: 2vh auto;
  padding: 0;
  width: 90%;
  max-width: 90vw;
  max-height: 96vh;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #2d3748;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5em;
}

.close {
  color: #718096;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  max-height: calc(96vh - 140px); /* Account for header and footer */
  overflow-y: auto;
}

.modal-body form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-body .form-group {
  margin-bottom: 15px;
}

.modal-body input:not([type="radio"]):not([type="checkbox"]),
.modal-body select,
.modal-body textarea {
  width: 100%;
  max-width: 100%;
  background-color: #151725;
}

.modal-body textarea {
  min-height: 100px;
  max-height: 300px;
  resize: vertical;
}

@media (min-width: 768px) {
  .modal-content {
    max-width: 600px;
  }
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #2d3748;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form Styles */
.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #a0aec0;
}

.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #2d3748;
  border-radius: 4px;
  background-color: #2d3748;
  color: #fff;
  font-size: 14px;
}

.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4299e1;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Button Styles */
.save-btn {
  background-color: #3182ce;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.save-btn:hover {
  background-color: #2c5282;
}

.cancel-btn {
  background-color: transparent;
  color: #718096;
  border: 1px solid #2d3748;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cancel-btn:hover {
  background-color: #2d3748;
  color: #fff;
}

/* Preset Description Styles */
.form-help {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: 12px;
  line-height: 1.4;
}

/* Login Page Specific Styles */
.login-form {
  max-width: 400px;
  padding: 40px;
  background: #191d2e;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

.login-form header {
  text-align: center;
  margin-bottom: 30px;
}

.login-form header img.logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.login-form header h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}

.login-form h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 25px;
  text-align: center;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  color: #6b7280;
  margin-bottom: 8px;
  font-size: 14px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #2d3748;
  border-radius: 6px;
  background-color: #0d101b;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  outline: none;
}

.login-form button[type="submit"] {
  width: 100%;
  background-color: #2563eb;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.login-form button[type="submit"]:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.login-form button[type="submit"]:active {
  transform: translateY(0);
}

.login-form p {
  text-align: center;
  margin-top: 20px;
  color: #6b7280;
  font-size: 14px;
}

.login-form a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-form a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Message Container for Login */
.message-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000; /* Increased z-index to appear above modal */
  width: 90%;
  max-width: 400px;
}

.message-box {
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  color: white;
  font-size: 14px;
  animation: slideDown 0.3s ease-out, fadeOut 3s 0.5s forwards;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: none;
  position: relative; /* Added position relative */
  z-index: 2100; /* Increased z-index to appear above container */
}

.message-box.error {
  background-color: #dc2626;
  border-left: none;
}

.message-box.success {
  background-color: #059669;
  border-left: none;
}

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

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Responsive adjustments for login */
@media (max-width: 480px) {
  .login-form {
    padding: 30px 20px;
    margin: 10px;
  }

  .login-form header img.logo {
    max-width: 150px;
  }
}

/* Login Page Layout */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-content {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-header {
  margin-bottom: 30px;
}

.login-logo {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.login-header h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
}

/* Update existing login form styles */
.login-form {
  background: #191d2e;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.login-form h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 25px;
  text-align: center;
}

/* Modern Icon System with Hex Design */
.stat-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hex-container {
  position: relative;
  width: 70px;
  height: 80.5px;
  background-color: rgba(0, 157, 255, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.hex-background {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 157, 255, 0.2),
    rgba(0, 221, 255, 0.1)
  );
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
}

.hex-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #00ddff, #009dff);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.hex-container i {
  font-size: 1.8rem;
  color: #00ddff;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(0, 221, 255, 0.5));
  transition: all 0.3s ease;
}

/* Hover Effects */
.stat-card:hover .hex-container {
  transform: translateY(-5px);
}

.stat-card:hover .hex-border {
  opacity: 0.2;
}

.stat-card:hover .hex-container i {
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(0, 221, 255, 0.8));
}

/* Animated Background */
.hex-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 221, 255, 0.1) 50%,
    transparent 100%
  );
  animation: rotateGradient 3s linear infinite;
  z-index: 0;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Metric Badges */
.metric,
.attack-metrics .metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(13, 18, 27, 0.6);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: 0.2px;
}

.metric i,
.attack-metrics .metric i {
  color: #0066ff;
  font-size: 0.85rem;
  filter: drop-shadow(0 0 4px rgba(0, 102, 255, 0.3));
}

.metric:hover,
.attack-metrics .metric:hover {
  background: rgba(13, 18, 27, 0.8);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.attack-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

/* Fixed widths for specific metrics */
.attack-metrics .metric:nth-child(1) {
  /* Bandwidth */
  width: 160px;
}

.attack-metrics .metric:nth-child(2) {
  /* PPS */
  width: 180px;
}

.attack-metrics .metric:nth-child(3) {
  /* Severity */
  width: auto
}
/* Holographic Icon System */
.holo-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(0, 102, 255, 0.2),
    rgba(0, 102, 255, 0),
    rgba(0, 102, 255, 0.2)
  );
  animation: rotate 4s linear infinite;
}

.holo-ring::before,
.holo-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    #0066ff 90deg,
    transparent 180deg,
    #0066ff 270deg,
    transparent 360deg
  );
  animation: borderRotate 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.holo-ring::after {
  animation: borderRotate 4s linear infinite reverse;
  opacity: 0.5;
}

.holo-circle {
  position: relative;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 102, 255, 0.1),
    rgba(0, 102, 255, 0.05)
  );
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  z-index: 1;
}

.holo-circle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 102, 255, 0.4),
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-icon i {
  font-size: 1.8rem;
  color: #0066ff;
  filter: drop-shadow(0 0 5px rgba(0, 102, 255, 0.5));
  z-index: 2;
  transition: all 0.3s ease;
}

/* Hover Effects */
.stat-card:hover .holo-circle::before {
  opacity: 1;
}

.stat-card:hover .stat-icon i {
  color: #5e99f0;
  filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.8));
  transform: scale(1.1);
}

/* Metric Badges */
.metric {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 12px;
  color: #0066ff;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric i {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 3px rgba(0, 102, 255, 0.5));
}

.metric:hover {
  transform: translateY(-2px);
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.1);
}

/* Holographic Badge */
.holo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  position: relative;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.05);
  overflow: hidden;
}

.holo-badge i {
  font-size: 0.9rem;
  color: #0066ff;
  filter: drop-shadow(0 0 2px rgba(0, 102, 255, 0.5));
  z-index: 2;
}

.holo-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(0, 102, 255, 0.2),
    transparent
  );
  animation: rotate 2s linear infinite;
}

/* Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes borderRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Stat Cards */
.stat-card {
  background: linear-gradient(
    165deg,
    rgba(0, 102, 255, 0.03),
    rgba(0, 102, 255, 0.01)
  );
  border: 1px solid rgba(0, 102, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 102, 255, 0.05),
    transparent
  );
  transition: 0.5s;
}

.stat-card:hover {
  border-color: rgba(0, 102, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.1);
  transform: translateY(-5px);
}

.stat-card:hover::before {
  left: 100%;
}

.attack-metrics {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}
.metric {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

.port-config {
  margin-bottom: 10px;
}
.radio-label {
  margin-right: 20px;
  display: inline-block;
}
.port-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.port-range span {
  color: #666;
}
.port-input input[type="number"] {
  width: 120px;
}

.mitigation-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

.mitigation-status.mitigated {
  background-color: rgba(75, 181, 67, 0.1);
  color: #4bb543;
}

.mitigation-status.mitigating {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.status-symbol {
  margin-right: 4px;
}

/* Account Settings Styles */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.settings-card {
  background: #151725;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 25px;
}

.settings-card h2 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #30363d;
}

.settings-form .form-group {
  margin-bottom: 20px;
}

.settings-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #d1d5db;
}

.settings-form .form-group input,
.settings-form .form-group select {
  width: 100%;
  padding: 10px;
  background: #0d101b;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #ffffff;
}

.settings-form .form-group input:disabled {
  background: #1a1f2e;
  cursor: not-allowed;
}

.settings-form .form-actions {
  margin-top: 30px;
}

.settings-form .btn-primary {
  background: #3b82f6;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.settings-form .btn-primary:hover {
  background: #2563eb;
}

/* Setup Account Page Styles */
.setup-container {
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.setup-box {
  background: rgba(26, 31, 46, 0.8);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin-top: 2rem;
}

.setup-box .card-header {
  margin-bottom: 2rem;
}

.setup-box .card-header h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.setup-box .card-header p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
}

.setup-box .card-body {
  padding: 0;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.setup-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.setup-form label {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.setup-form input[type="email"],
.setup-form input[type="password"],
.setup-form input[type="text"],
.setup-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.setup-form input::placeholder {
  color: #64748b;
}

.setup-form input:focus,
.setup-form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.setup-form input:hover,
.setup-form select:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.setup-form select option {
  background: #1a1f2e;
  color: #e2e8f0;
  padding: 0.5rem;
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  width: 100%;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Setup Form Select Styles */
.setup-form select {
  width: 100%;
  padding: 0.75rem;
  background: #0d101b;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 1rem;
  color: #ffffff;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.setup-form select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.setup-form select option {
  background: #1a1f2e;
  color: #ffffff;
  padding: 0.5rem;
}

.service-inactive-message {
  background: linear-gradient(145deg, #1a1f2e, #232838);
  border-radius: 12px;
  padding: 25px 30px;
  color: #fff;
  margin: 0 0 25px 0;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-inactive-message h2 {
  color: #dc3545;
  font-size: 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-inactive-message h2::before {
  content: "\f071";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 20px;
}

.service-inactive-message p {
  color: #e2e8f0;
  margin: 15px 0;
  line-height: 1.6;
  font-size: 15px;
}

.service-inactive-message p:last-child {
  margin-bottom: 0;
}

.service-inactive-message .ip-address {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  display: inline-block;
  margin: 0 5px;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #151725;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #2d3748;
  border-radius: 4px;
  border: 2px solid #151725;
}

::-webkit-scrollbar-thumb:hover {
  background: #0066ff;
}

::-webkit-scrollbar-corner {
  background: #151725;
}

/* Game Server Selection */
.form-group select[multiple] {
  height: auto;
  min-height: 120px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
}

.form-group select[multiple] option {
  padding: 12px;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 24px 24px;
  padding-left: 48px;
}

.form-group select[multiple] option:hover,
.form-group select[multiple] option:checked {
  background-color: rgba(49, 130, 206, 0.15);
}

.form-group select option[value="fivem"],
.form-group select option[value="fxserverproxy"] {
  background-image: url('img/games/fivem.webp');
}

.form-group select option[value="minecraft"],
.form-group select option[value="minecraftserverproxy"] {
  background-image: url('img/games/minecraft.webp');
}

.form-group select option[value="rust"] {
  background-image: url('img/games/rust.webp');
}

.form-group select option[value="gmod"] {
  background-image: url('img/games/gmod.webp');
}

/* Port Configuration Styles */
.port-config {
  margin-bottom: 20px;
}

.port-config .radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.port-config .radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #d1d5db;
  font-size: 14px;
}

.port-config input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #30363d;
  border-radius: 50%;
  background: #151725;
  position: relative;
  cursor: pointer;
  margin: 0;
  padding: 1px 1px
}

.port-config input[type="radio"]:checked {
  border-color: #3b82f6;
  background: #151725;
}

.port-config input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.port-config input[type="radio"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.port-config input[type="radio"]:hover {
  border-color: #3b82f6;
}

.port-range {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.port-range input[type="number"] {
  width: 120px;
  padding: 8px 12px;
  background: #151725;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
}

.port-range input[type="number"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.port-range span {
  color: #8b8d98;
  font-size: 14px;
}

.port-range input[type="number"]::-webkit-inner-spin-button,
.port-range input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.port-range input[type="number"] {
  -moz-appearance: textfield;
}

.port-input {
  margin-top: 10px;
}

.port-input input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  background: #151725;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
}

.port-input input[type="number"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.port-input input[type="number"]::placeholder {
  color: #4b5563;
}

.reset-ip-btn:hover {
  background-color: #c82333!important;
}


/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 0 -20px;  /* Negative margin to counteract card-body padding */
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 20px;  /* Add margin to match card-body padding */
  max-width: 97%
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #2d3748;
}

.data-table th {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.data-table td {
  color: #e2e8f0;
  font-size: 0.875rem;
}

.data-table tbody tr:hover {
  background-color: rgba(45, 55, 72, 0.3);
}

.data-table .badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.data-table .badge-admin {
  background-color: #3b82f6;
  color: white;
}

.data-table .actions {
  display: table-cell!important
}

.data-table .btn-small {
  padding: 6px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid #2d3748;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}

.data-table .btn-small:hover {
  background: rgba(45, 55, 72, 0.3);
}

.data-table .btn-edit:hover {
  color: #3b82f6;
  border-color: #3b82f6;
}

.data-table .btn-delete:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.data-table .btn-login-as:hover {
  color: #3b82f6;
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

/* IP Badge Styles */
.ip-badge {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  color: #3b82f6;
  font-size: 0.875rem;
  font-family: monospace;
}

.no-ip {
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
}

/* Update table styles to handle multiple IP badges */
.data-table td {
  padding: 12px 16px;
  vertical-align: middle;
  line-height: 1.6;
}

/* Impersonation Banner Styles */
.impersonation-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 16px;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
}

.impersonation-banner span {
  color: #3b82f6;
  font-size: 0.875rem;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.username {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Navbar styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background-color: #1a1b1e;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .btn,
.navbar .logout-btn,
.navbar button {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.navbar .btn-primary,
.navbar button[type="submit"] {
  background-color: #3b82f6;
  color: white;
  border: none;
}

.navbar .btn-primary:hover,
.navbar button[type="submit"]:hover {
  background-color: #2563eb;
}

.navbar .logout-btn {
  background-color: #dc2626;
  color: white;
  text-decoration: none;
  border: none;
}

.navbar .logout-btn:hover {
  background-color: #b91c1c;
}

.impersonation-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
}

.impersonation-banner span {
  color: #3b82f6;
  font-size: 0.875rem;
}

.impersonation-banner .logout-btn {
  height: 28px;
  padding: 0 12px;
  background-color: #3b82f6;
  color: white;
  margin-left: -4px;
}

.impersonation-banner .logout-btn:hover {
  background-color: #2563eb;
}

.viewing-as {
  color: #6b7280;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.alert i {
  font-size: 16px;
}

/* Attack Status */
.attack-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.severity, .mitigation-status {
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0 4px;
}

.severity.low {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.severity.medium {
  background-color: rgba(255, 165, 0, 0.1);
  color: #FFA500;
}

.severity.high {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.mitigation-status {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #151725;
  border-radius: 8px;
  margin: 20px 0;
}

.empty-state h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 15px;
}

.empty-state p {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.empty-state .sub-text {
  color: #808080;
  font-size: 14px;
}

@media only screen and (max-width: 600px) {
  .mitigation-status {
    position: relative;
    display: block;
    margin: 10px 0;
    width: 100%;
    min-width: 100px;
    text-align: center;
  }
}

