/* General styling */
body {
  font-size: .875rem;
  background-color: #f8f9fa;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

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

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

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

.sidebar .nav-link:hover {
  color: #007bff;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/* Navbar */
.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

/* Navbar Dropdown */
.dropdown-menu {
  position: absolute;
  z-index: 1050;
  border: 1px solid rgba(0, 0, 0, .15);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-item:active {
  background-color: #007bff;
}

/* Content */
.card {
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Forms */
.form-label {
  font-weight: 500;
}

.required:after {
  content: '*';
  color: red;
  margin-left: 2px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.action-buttons .btn {
  margin-right: 5px;
}

.action-buttons .btn:last-child {
  margin-right: 0;
}

/* Pagination */
.pagination {
  margin-bottom: 0;
}

/* Action buttons */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.76563rem;
}

/* Custom colors for labels */
.status-active {
  color: #198754;
}

.status-inactive {
  color: #dc3545;
}

.status-pending {
  color: #fd7e14;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .action-column {
    min-width: 120px;
  }
}

/* Login page */
.login-page {
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
  height: 100vh;
}

.form-signin {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  margin: auto;
}

/* Animation */
.fade-in {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
} 