/* PathsHub.com - Simple Clean Design */

:root {
  /* Colors - Simple palette */
  --primary: #2563eb;
  --text: #333333;
  --text-light: #666666;
  --border: #dddddd;
  --bg-light: #f5f5f5;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation */
.modern-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0;
}

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

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.nav-menu a:hover {
  color: var(--primary);
}

/* 确保导航栏中所有文字大小一致 */
.nav-balance {
  color: var(--text-light);
  font-size: 14px;
}

/* Forms */
.form-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

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

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

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

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.card-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}

.card-body {
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table th {
  background: var(--bg-light);
  font-weight: 600;
  font-size: 14px;
}

/* Alerts */
.alert {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-processing,
.status-in-progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-canceled {
  background: #fee2e2;
  color: #991b1b;
}

.status-partial {
  background: #fde68a;
  color: #78350f;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.col {
  flex: 1;
  padding: 10px;
}

.col-auto {
  flex: 0 0 auto;
  padding: 10px;
}

/* Logout button with icon - 使用更高优先级确保样式不被覆盖 */
.logout-btn.btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px !important;
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  padding: 8px 16px !important;
}

.logout-btn.btn:hover {
  background: var(--error) !important;
  color: white !important;
  border-color: var(--error) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.logout-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.logout-btn.btn:hover .logout-icon {
  transform: translateX(2px);
  color: white !important;
}

/* 确保图标和文字在所有状态下都清晰可见 */
.logout-btn.btn svg {
  color: inherit !important;
}

.logout-btn.btn:hover svg {
  color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .form-container {
    margin: 20px;
    padding: 20px;
  }
  
  .row {
    flex-direction: column;
  }
}