/* Center the datetime widget */
#information-widgets .information-widget-datetime {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

/* Ensure the widget container allows for centered positioning */
#widgets-wrap {
  position: relative;
}

/* Enhanced Repository Card Styling */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.25rem !important;
  position: relative;
}

/* Status indicator dot - for services with siteMonitor (non-Pterodactyl) and Pterodactyl servers */
.service-card.has-site-monitor-status .service-title,
.service-card.has-pterodactyl-status .service-title {
  position: relative;
}

.service-card.has-site-monitor-status .service-title::after,
.service-card.has-pterodactyl-status .service-title::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #ef4444; /* Default red (offline) */
  box-shadow: 0 0 0.25rem rgba(239, 68, 68, 0.5);
  z-index: 10;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card.has-site-monitor-status.status-online .service-title::after,
.service-card.has-pterodactyl-status.status-online .service-title::after {
  background-color: #22c55e; /* Green (online) */
  box-shadow: 0 0 0.25rem rgba(34, 197, 94, 0.5);
}

.service-card.has-pterodactyl-status.status-starting .service-title::after {
  background-color: #eab308; /* Yellow (starting) */
  box-shadow: 0 0 0.25rem rgba(234, 179, 8, 0.5);
}

/* Hide Status text display for Pterodactyl servers - handled by JavaScript */

/* Hide siteMonitor response time displays */
.service-site-monitor .site-monitor-status {
  display: none !important;
}

/* Hide ping displays */
.service-ping .site-monitor-status,
.service-ping-status {
  display: none !important;
}

/* Hide ping/response time displays - handled by JavaScript */
.service-ping-hidden {
  display: none !important;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Enhanced service icon styling */
.service-icon {
  transition: transform 0.3s ease;
  width: 2.5rem !important;
  height: 2.5rem !important;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Better typography for repository names */
.service-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.375rem 0.5rem !important;
}

/* Enhanced widget styling for repository cards */
.service-widget {
  margin-top: 0.25rem;
  padding-top: 0.375rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced widget text styling with truncation */
.service-widget .font-bold {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  margin-bottom: 0.0625rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
  display: inline-block;
}

.service-widget .font-thin {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
  line-height: 1.3;
}

/* Better spacing for widget labels and values */
.service-widget > div {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  padding: 0.25rem 0;
}

.service-widget > div:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.25rem;
  padding-bottom: 0.375rem;
}

/* Enhanced block mode styling */
.service-block {
  margin-top: 0.375rem;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-block .font-thin {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6875rem;
}

.service-block .font-bold {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 0.75rem;
  margin-bottom: 0.0625rem;
}

/* Smooth transitions for all interactive elements */
.service-card * {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Enhanced description styling */
.service-description {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.service-card:hover .service-description {
  opacity: 1;
}

/* Enhanced message display in list view for customapi widgets */
/* Style commit message items to display better */
.service-widget .commit-message-item {
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 0.5rem !important;
}

.service-widget .commit-message-item .flex.flex-row.text-right {
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-top: 0.25rem;
  justify-content: flex-start !important;
}

.service-widget .commit-message-item .commit-message-value {
  white-space: normal !important;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.6 !important;
  max-width: 100%;
  margin-right: 0 !important;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 0.25rem;
  text-align: left !important;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Improve readability with better spacing */
.service-widget .commit-message-item .font-thin.pl-2 {
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

