/* 代理IP管理页面样式文件 */
/* 包含代理IP管理页面特有的样式 */

/* 代理容器 */
.proxy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px; /* 为底部导航栏留出空间 */
}

/* 顶部导航栏 */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(40, 40, 60, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-center {
  text-align: center;
}

.header-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #ffffff !important; /* 纯白色粗体 */
  margin: 0;
  text-align: center !important;
}

.header-placeholder {
  width: 32px; /* 与返回按钮宽度相同，用于平衡布局 */
}

/* 统计卡片 */
.stats-card {
  margin-bottom: 30px;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
}

.stat-item {
  text-align: center;
  padding: 10px;
  flex: 1;
}

.stat-label {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
}

.stat-total {
  color: #3498db;
}

.stat-valid {
  color: #2ecc71;
}

.stat-invalid {
  color: #e74c3c;
}

/* IP卡片容器 */
.ip-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

/* IP卡片 */
.ip-card {
  background: rgba(40, 40, 60, 0.8);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.ip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.ip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-address {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.ip-protocol {
  font-size: 14px;
  color: #43e97b;
  background: rgba(67, 233, 123, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.ip-card-body {
  margin-bottom: 15px;
}

.ip-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ip-info-label {
  font-size: 14px;
  color: #aaaaaa;
}

.ip-info-value {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.ip-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.ip-status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
}

.ip-status-badge.valid {
  background-color: #d4edda;
  color: #155724;
}

.ip-status-badge.invalid {
  background-color: #f8d7da;
  color: #721c24;
}

.ip-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* IP操作按钮容器 */
.ip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.ip-actions .btn {
  font-size: 14px;
  padding: 8px 16px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 进度条容器 */
.progress-container {
  margin-top: 20px;
  text-align: center;
}

/* textarea 输入框样式 */
#ipInput {
  font-size: 12px !important;
  font-family: 'Courier New', monospace;
  line-height: 1.4;
  white-space: pre;
  overflow-wrap: normal;
  word-wrap: normal;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background-color: #3498db;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: #555;
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2c3e50;
}

.modal-message {
  margin-bottom: 25px;
  color: #555;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .proxy-container {
    padding: 15px;
    padding-bottom: 100px; /* 为底部导航栏留出空间 */
  }
  
  .header {
    flex-direction: row;
    gap: 15px;
  }
  
  .header-title {
    font-size: 18px;
    position: static;
    transform: none;
    left: auto;
  }
  
  .header-placeholder {
    width: 24px; /* 与返回按钮宽度相同，用于平衡布局 */
  }
  
  .stats-row {
    flex-direction: row;
    gap: 5px;
  }
  
  .stat-item {
    padding: 8px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .ip-cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .ip-card {
    padding: 15px;
  }
  
  .ip-address {
    font-size: 16px;
  }
  
  .ip-info-row {
    flex-direction: column;
    gap: 5px;
  }
  
  .ip-info-label {
    font-size: 12px;
  }
  
  .ip-info-value {
    font-size: 13px;
  }
  
  .ip-card-footer {
    flex-direction: row;
    gap: 5px;
  }
  
  .ip-actions {
    flex-direction: row;
    gap: 8px;
  }
  
  .ip-actions .btn {
    font-size: 13px;
    padding: 6px 12px;
    height: 32px;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-actions {
    flex-direction: row;
  }
  
  .modal-actions .btn {
    width: auto;
  }
}