/* main.css - Custom styles for Building Management System */

body {
  background-color: #f8fafc;
  font-family: "Segoe UI", Arial, sans-serif;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #e9f2fb;
}

.table th,
.table td {
  vertical-align: middle;
}

input.form-control,
select.form-select,
textarea.form-control {
  border: 2px solid #0d6efd;
  border-radius: 0.375rem;
  box-shadow: none;
  transition: border-color 0.2s;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
  border-color: #0a58ca;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0a58ca;
  border-color: #0a58ca;
}

.btn-warning {
  color: #fff;
  background-color: #ffc107;
  border-color: #ffc107;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #e0a800;
  border-color: #d39e00;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #bb2d3b;
  border-color: #b02a37;
}

.btn-info {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  color: #fff;
}

.btn-info:hover,
.btn-info:focus {
  background-color: #31d2f2;
  border-color: #25cff2;
  color: #fff;
}

h2,
h4 {
  color: #0d6efd;
}

.text-danger {
  color: #dc3545 !important;
}

.text-success {
  color: #198754 !important;
}

.text-info {
  color: #0dcaf0 !important;
}

.text-center {
  text-align: center !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.fw-bold {
  font-weight: bold !important;
}

/* Custom card for dashboard */
.card-metric {
  border: 2px solid #0d6efd;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}
