.ci-error {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #ffeef0;
  border: 1px solid #fdaeb7;
  border-radius: 5px;
  color: #cb2431;
  font-size: 14px;
}

.ci-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6a737d;
}
.ci-empty code {
  background: #f3f3f3;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.ci-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-transform: capitalize;
}
.ci-status-badge.ci-success {
  background: #28a745;
}
.ci-status-badge.ci-failure {
  background: #cb2431;
}
.ci-status-badge.ci-running {
  background: #dbab09;
  color: #24292e;
}
.ci-status-badge.ci-pending {
  background: #6a737d;
}
.ci-status-badge.ci-cancelled {
  background: #959da5;
}

.ci-badge-inline {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}
.ci-badge-inline.ci-success {
  background: #28a745;
}
.ci-badge-inline.ci-failure {
  background: #cb2431;
}
.ci-badge-inline.ci-running {
  background: #dbab09;
}
.ci-badge-inline.ci-pending {
  background: #6a737d;
}
.ci-badge-inline.ci-cancelled {
  background: #959da5;
}

.ci-runs {
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  overflow: hidden;
}

.ci-runs-header {
  display: flex;
  padding: 10px 15px;
  background: #f3f3f3;
  border-bottom: 1px solid #dfdfdf;
  font-weight: 600;
  font-size: 13px;
  color: #586069;
}

.ci-run-row {
  display: flex;
  padding: 10px 15px;
  border-bottom: 1px solid #dfdfdf;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.ci-run-row:last-child {
  border-bottom: none;
}
.ci-run-row:hover {
  background: #f3f3f3;
}

.ci-col-status {
  flex: 0 0 120px;
}

.ci-col-branch {
  flex: 0 0 150px;
}

.ci-col-commit {
  flex: 0 0 120px;
}

.ci-col-time {
  flex: 1;
  text-align: right;
  color: #586069;
  font-size: 13px;
}

.ci-run-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ci-run-header h1 {
  margin: 0;
}

.ci-restart-form {
  margin-left: auto;
}

.ci-restart-btn {
  padding: 5px 14px;
  background: #fff;
  color: #24292e;
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ci-restart-btn:hover {
  background: #f3f3f3;
  border-color: #c6cbd1;
}

.ci-run-info {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #dfdfdf;
  font-size: 13px;
  color: #586069;
}
.ci-run-info b {
  color: #24292e;
}
.ci-run-info code {
  background: #f3f3f3;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.ci-job {
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  margin-bottom: 16px;
  overflow: hidden;
}

.ci-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f3f3f3;
  border-bottom: 1px solid #dfdfdf;
}
.ci-job-header.ci-success {
  border-left: 3px solid #28a745;
}
.ci-job-header.ci-failure {
  border-left: 3px solid #cb2431;
}
.ci-job-header.ci-running {
  border-left: 3px solid #dbab09;
}
.ci-job-header.ci-pending {
  border-left: 3px solid #6a737d;
}

.ci-steps {
  padding: 0;
}

.ci-step {
  border-bottom: 1px solid #dfdfdf;
}
.ci-step:last-child {
  border-bottom: none;
}

.ci-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  font-size: 13px;
}
.ci-step-header.ci-success .ci-step-icon {
  color: #28a745;
}
.ci-step-header.ci-failure .ci-step-icon {
  color: #cb2431;
}
.ci-step-header.ci-running .ci-step-icon {
  color: #dbab09;
}
.ci-step-header.ci-pending .ci-step-icon {
  color: #6a737d;
}

.ci-step-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.ci-step-cmd {
  background: #f3f3f3;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #586069;
  margin-left: auto;
}

.ci-step-output {
  background: #1b1f23;
  color: #e1e4e8;
  padding: 12px 15px;
  margin: 0;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.ci-create-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: #28a745;
  color: #fff !important;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.ci-create-btn:hover {
  background: #22863a;
}

.create-file-form {
  margin-top: 15px;
}

.create-file-path {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 4px;
}
.create-file-path input {
  flex: 1;
  font-size: 14px;
  padding: 6px 10px;
}

.create-file-prefix {
  color: #586069;
  font-size: 14px;
  white-space: nowrap;
}

.create-file-editor {
  width: 100%;
  box-sizing: border-box;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  resize: vertical;
  tab-size: 2;
}

.create-file-commit {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.create-file-commit input[type=text] {
  flex: 1;
  padding: 6px 10px;
}
.create-file-commit input[type=submit] {
  padding: 6px 20px;
  background: #28a745;
  color: #fff;
  border: 1px solid #28a745;
  width: auto !important;
}
.create-file-commit input[type=submit]:hover {
  background: #22863a;
  border-color: #22863a;
}
