/* Tabler UI specific customizations */

/* Override any conflicting styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
}

/* Card hover effect */
.card:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.bg-secondary {
  background-color: #e9ecef !important;
}

.bg-warning {
  background-color: #fff3cd !important;
}

.bg-success {
  background-color: #d4edda !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-primary {
  background-color: #3b82f6 !important;
}

/* Task cards specific styling */
.task-card {
  transition: all 0.3s ease;
  height: 100%;
}

.task-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.task-card .card-header {
  padding: 0.75rem 1rem;
}

.task-card .card-body {
  padding: 1rem;
}

.task-card .card-footer {
  padding: 0.75rem 1rem;
}

/* Responsive grid for task cards */
@media (min-width: 992px) {
  .task-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
  }
}

/* Compact filter styling */
.card-header .card-actions {
  display: flex;
  align-items: center;
}

.btn-toggle-filters {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Ensure form elements are compact */
.form-group {
  margin-bottom: 0.75rem;
}

/* Rotate chevron icon when collapsed */
.card-actions [data-bs-toggle="collapse"] .icon-tabler-chevron-down {
  transition: transform 0.2s;
}

.card-actions [data-bs-toggle="collapse"].collapsed .icon-tabler-chevron-down {
  transform: rotate(-90deg);
}

/* Status indicator strips */
.status-indicator {
  min-height: 40px; /* Match the typical row height */
}

/* Login card styling - make it compact instead of full width */
.container-tight {
  max-width: 400px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.card-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Adjust form elements in login card */
.card-body {
  padding: 2rem;
}

.navbar-vertical {
  margin-top: 0;
}

/* Adjust sidebar positioning to account for horizontal navbar */
@media (min-width: 768px) {
  .navbar-vertical {
    height: calc(100vh - 56px); /* Full height minus navbar height */
  }
}

.page-wrapper {
  padding-top: 0;
}

/* Add minimal top padding to prevent content overlap with fixed header */
.page-body {
  padding-top: 1rem;
}