@charset "UTF-8";
body { 
    background-color: #f8f9fc; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.custom-navbar { 
    background: #fff; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
    border-bottom: 2px solid #f58220;
}
.navbar-title { 
    font-size: clamp(1rem, 3vw, 1.5rem); 
    font-weight: 600; 
    color: #333; 
    text-align: center; 
    width: 100%;
}
.card {
    border: 1px solid #D6D6D6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}
.card-header {
    border-bottom: 2px solid #f58220;
    font-weight: 600;
    font-size: 1.1rem;
}
.count {
    font-size: 2rem;
    font-weight: 700;
    color: #f58220;
}
.btn-orange {
    background-color: #f58220;
    border: none;
    color: white;
    font-weight: 500;
}
.btn-orange:hover { background-color: #e36c12; }

.table-container {
  overflow: hidden !important;
  height: auto !important;
}


.server-card { border-left: 5px solid #ccc; }
.server-online { border-left-color: #28a745; }
.server-offline { border-left-color: #dc3545; }

.badge-running { background-color: #28a745; }
.badge-idle { background-color: #ffc107; color: #000; }
.badge-resting { background-color: #6c757d; }

@media (max-width: 768px) {
    .card-body .count { font-size: 1.5rem; }
    .table-container { padding: 10px; }
}
.table-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.1);
  padding: 15px;
  overflow: hidden; /* no external scrollbars */
}

/* Make DataTables inner scroll area fit card height */



/* Table structure */
#projectsTable {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  color: #212529;
}

#projectsTable thead th {
  background-color: #f8f9fa;
  text-align: center;
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 2px solid #dee2e6;
  padding: 8px 10px;
  white-space: nowrap;
}

#projectsTable tbody td {
  text-align: center;
  vertical-align: middle;
  border: 1px solid #e5e5e5;
  padding: 6px 10px;
  white-space: nowrap;
}

#projectsTable th:first-child,
#projectsTable td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  font-weight: 600;
  z-index: 6;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 4px 8px;
  font-size: 13px;
}

/* Buttons */
.btn-success.btn-sm {
  font-size: 12px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

td.text-center {
  font-size: 14px;
  color: #e74c3c;
}

/* Force CIN column to stay properly sized */
#projectsTable th:first-child,
#projectsTable td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  font-weight: 600;
  z-index: 6;
  min-width: 120px;
  max-width: 160px;
  white-space: nowrap;
  text-align: center;
}

/* Keep table inside visible area with no external scrollbar */
.dataTables_scrollBody {
  height: auto !important;
  max-height: calc(75vh) !important;
  overflow-y: auto !important;
  border-bottom: 1px solid #dee2e6;
}

/* Adjust column text */
#projectsTable thead th {
  background-color: #f8f9fa;
  text-align: center;
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 2px solid #dee2e6;
  padding: 8px 10px;
  white-space: nowrap;
}

#projectsTable tbody td {
  text-align: center;
  vertical-align: middle;
  border: 1px solid #e5e5e5;
  padding: 6px 10px;
  white-space: nowrap;
  font-size: 13px;
}

.tiny-refresh {
  font-size: 8px;
  opacity: 0.9;
  user-select: none;
}
.tiny-refresh:hover {
  opacity: 1;
}