/* Import shared styles from dashboard.css */
@import url('dashboard.css?v=20260216mobilefix1');

/* ================================
   Back Button
   ================================ */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(26, 188, 156, 0.7);
  border: 2px solid #1abc9c;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(26, 188, 156, 0.2);
}

.back-button:hover {
  background: rgba(26, 188, 156, 0.9);
  box-shadow: 0 4px 16px rgba(26, 188, 156, 0.4);
  transform: translateX(-5px);
}

.back-icon {
  font-size: 18px;
  font-weight: bold;
}

.back-text {
  letter-spacing: 0.5px;
}

/* ================================
   Profil Specific Styles
   ================================ */

.subtitle {
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 1rem;
}

/* User Info Card */
.user-info-card {
  margin-bottom: 30px;
}

.user-info-card .kpi-card {
  max-width: 500px;
}

.user-info-card .kpi-content p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.user-info-card .kpi-content strong {
  color: var(--text-primary);
  margin-right: 8px;
}

/* System Status Section */
.system-status {
  margin-bottom: 30px;
}

.system-status h3 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* Bot Settings Section */
.bot-settings {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 30px;
}

.bot-settings h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-item.full-width {
  grid-column: 1 / -1;
}

.setting-item label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-input {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

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

/* Coin Checkboxes */
.coin-checkboxes {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text-secondary);
}

.checkbox-label:hover {
  background: rgba(0, 200, 150, 0.2);
  border-color: var(--text-primary);
}

.checkbox-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--text-primary);
}

.checkbox-label span {
  font-size: 0.95rem;
}

/* Summary Section */
.summary-section,
.recent-trades-section {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 30px;
}

.summary-section h3,
.recent-trades-section h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.2rem;
}

.table-header {
  margin-bottom: 15px;
}

/* Status indicators */
#statusText.stopped {
  color: var(--danger);
}

#statusText.running {
  color: var(--success);
}

/* Light Theme Adjustments */
[data-theme='light'] .checkbox-label {
  background: rgba(0, 160, 118, 0.1);
}

[data-theme='light'] .checkbox-label:hover {
  background: rgba(0, 160, 118, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .back-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
  }

  .back-button:hover {
    transform: translateY(-2px);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .setting-item.full-width {
    grid-column: 1;
  }

  .coin-checkboxes {
    justify-content: center;
  }

  .checkbox-label {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .user-info-card .kpi-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .coin-checkboxes {
    flex-direction: column;
  }

  .checkbox-label {
    width: 100%;
  }
}

/* ================================
   Live Value Animations
   ================================ */
.value-up {
  color: #00ff99 !important;
  animation: flashGreen 1s ease-out;
}

.value-down {
  color: #ff4d4d !important;
  animation: flashRed 1s ease-out;
}

@keyframes flashGreen {
  0% {
    color: #00ff99;
    transform: scale(1.1);
  }
  50% {
    color: #00ff99;
    opacity: 0.9;
  }
  100% {
    color: var(--text-primary);
    transform: scale(1);
  }
}

@keyframes flashRed {
  0% {
    color: #ff4d4d;
    transform: scale(1.1);
  }
  50% {
    color: #ff4d4d;
    opacity: 0.9;
  }
  100% {
    color: var(--text-primary);
    transform: scale(1);
  }
}

.kpi-value {
  transition: all 0.3s ease;
}

/* ================================
   ✅ Update v1.2 - Systemstatus Styles
   ================================ */
.system-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.status-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px var(--shadow);
}

.status-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
}

.status-content {
  flex: 1;
}

.status-content h3 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 5px 0;
}

.status-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Additional Stats Section */
.additional-stats {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 30px;
}

.additional-stats h2 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

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

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(0, 200, 150, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

/* System Logs Section */
.system-logs {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
}

.system-logs h2 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.log-container {
  max-height: 300px;
  overflow-y: auto;
}

.log-entry {
  display: flex;
  gap: 15px;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry:hover {
  background: rgba(0, 200, 150, 0.05);
}

.log-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-width: 80px;
  font-weight: 500;
}

.log-message {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .system-status-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .log-entry {
    flex-direction: column;
    gap: 5px;
  }

  .log-time {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .status-card {
    flex-direction: column;
    text-align: center;
  }

  .status-icon {
    min-width: auto;
  }
}
/* ================================
   ✅ Refactor v1.2 - Vereinfachte Profil-Seite
   ================================ */

/* Card Container */
.card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 30px;
}

.card h2 {
  margin: 0 0 25px 0;
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Form Styles */
#profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Form Actions */
.form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.btn-primary {
  padding: 14px 40px;
  background: var(--text-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
  background: #00dda8;
}

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

/* Info Box */
.info-box {
  background: rgba(255, 193, 7, 0.08);
  border: 2px solid rgba(255, 193, 7, 0.4);
  padding: 20px 25px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.info-box h3 {
  margin: 0 0 12px 0;
  color: #ffc107;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-box p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .card {
    padding: 20px;
  }

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

  .btn-primary {
    width: 100%;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .card h2 {
    font-size: 1.2rem;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .info-box {
    padding: 15px 18px;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .info-box p {
    font-size: 0.9rem;
  }
}

/* Mobile flow normalization */
@media (max-width: 768px) {
  .card,
  .bot-settings,
  .summary-section,
  .recent-trades-section,
  .info-box,
  .status-card,
  .additional-stats,
  .system-logs {
    padding: 14px;
    margin-bottom: 14px;
    box-sizing: border-box;
  }

  .settings-grid,
  .system-status-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .status-card {
    align-items: flex-start;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .form-actions,
  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .card,
  .bot-settings,
  .summary-section,
  .recent-trades-section,
  .info-box,
  .status-card,
  .additional-stats,
  .system-logs {
    padding: 12px;
  }
}
