/* Control Application Custom Styles */

/* Bootstrap Icons font override for Propshaft */
@font-face {
  font-display: block;
  font-family: "bootstrap-icons";
  src: url("/assets/bootstrap-icons.woff2") format("woff2"),
       url("/assets/bootstrap-icons.woff") format("woff");
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 104px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
  padding: .5rem 1rem;
}

.sidebar .nav-link:hover {
  color: #0d6efd;
}

.sidebar .nav-link.active {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: .25rem;
}

/* Main content */
main {
  padding-top: 1.5rem;
}

/* Dashboard cards */
.stat-card {
  border-left: 4px solid;
}

.stat-card.success { border-left-color: #198754; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.danger { border-left-color: #dc3545; }
.stat-card.info { border-left-color: #0dcaf0; }
.stat-card.primary { border-left-color: #0d6efd; }

/* Status badges */
.badge-status-pending { background-color: #6c757d; }
.badge-status-processing { background-color: #0dcaf0; }
.badge-status-completed { background-color: #198754; }
.badge-status-failed { background-color: #dc3545; }
.badge-status-suspense { background-color: #ffc107; color: #000; }

/* Table improvements */
.table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

/* Login page */
.login-container {
  max-width: 400px;
  margin: 100px auto;
}

/* Alerts */
.alert-count {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Transaction detail */
.detail-label {
  font-weight: 600;
  color: #6c757d;
}

/* Sync log severity colors */
.severity-info { color: #0dcaf0; }
.severity-warning { color: #ffc107; }
.severity-error { color: #dc3545; }

/* Settings form */
.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
}

.settings-section:last-child {
  border-bottom: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
}
