/* Cron Management - Specific Styles */

.cron-table td:first-child { font-weight: 600; }
.cron-table td:nth-child(2) { font-family: 'Courier New', monospace; font-size: 12px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.ok { background: #dcfce7; color: #166534; }
.status-badge.error { background: #fee2e2; color: #991b1b; }
.status-badge.pending { background: #fef3c7; color: #92400e; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.ok { background: #22c55e; }
.status-dot.error { background: #ef4444; }
.status-dot.pending { background: #f59e0b; }

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}

.btn-sm:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }

.history-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.history-item:last-child { border-bottom: none; }

.history-job { font-weight: 600; }
.history-time { color: var(--text-muted); font-size: 12px; }
.history-status { font-size: 12px; font-weight: 500; }

.loading-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 40px !important;
}

.log-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.log-modal.open { display: flex; }

.log-modal-content {
  background: var(--card);
  border-radius: var(--radius);
  width: 80%;
  max-width: 700px;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.log-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.log-modal-header h3 { font-size: 16px; font-weight: 600; }

.log-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

.log-modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(70vh - 60px);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text);
}
