/* ============================================
   GFS Connect App - Component Styles
   Modern, Telerik-aligned component styling 
  (Making a non sensical change which  I will remove after)
   ============================================ */

/* Device Messages Page Styles */
.device-selection-container {
  display: inline-block;
  margin: 0 8px 16px 0;
}

.device-selection-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.refresh-button-container {
  display: inline-block;
  margin: 0 8px 16px 0;
}

/* Sensor Reading Cell Formatting */
.highlightCellBackGround {
  background-color: var(--kendo-color-warning-subtle, lightyellow);
}

.NormalCellFormatting {
  color: #424242 !important;
  font-weight: normal;
}

.RedAlertCellFormatting {
  color: var(--kendo-color-error, #d32f2f);
  font-weight: 600;
}

.ChargedCellFormatting {
  color: var(--kendo-color-success, #388e3c);
  font-weight: 600;
}

.CircuitTestCellFormatting {
  color: var(--kendo-color-info, #1976d2);
  font-weight: 600;
}

/* IoT Messages Grid Styles */
.iot-messages-grid {
  width: 100%;
}

.iot-messages-grid .k-grid-content tr {
  line-height: 32px;
}

.temperature-alert {
  background-color: var(--kendo-color-error, #d32f2f);
  color: var(--kendo-color-on-error, white);
  padding: 4px 8px;
  border-radius: var(--kendo-border-radius-md, 4px);
  font-weight: 600;
}

/* GFS Installed Unit Form Styles */
.validation-header {
  color: var(--kendo-color-error, #d32f2f);
  font-weight: 600;
}

.validation-message-box {
  color: var(--kendo-color-error, #d32f2f);
  background-color: transparent;
  padding: 10px;
  border: none;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.label-column {
  flex: 0 0 150px;
  text-align: right;
  padding-right: 12px;
  font-weight: 600;
  color: var(--kendo-color-on-app-surface, #424242);
}

.input-column {
  flex: 1;
}

/* UTC Date Tooltip Styling */
.utc-date-tooltip {
  cursor: help;
  border-bottom: 1px dotted var(--kendo-color-primary, #0078d4);
}

.utc-date-tooltip:hover {
  color: var(--kendo-color-primary, #0078d4);
}

/* Responsive Design for Mobile */
@media (max-width: 767.98px) {
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .label-column {
    flex: 0 0 auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: 4px;
  }

  .input-column {
    width: 100%;
  }

  .device-selection-container,
  .refresh-button-container {
    display: block;
    margin: 0 0 16px 0;
    width: 100%;
  }
}

/* Card-like Sections */
.section-card {
  background-color: var(--kendo-color-surface, white);
  border: 1px solid var(--kendo-color-border, #e0e0e0);
  border-radius: var(--kendo-border-radius-md, 4px);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-card h3,
.section-card h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--kendo-color-primary, #0078d4);
}

/* Grid Toolbar Enhancements */
.k-grid-toolbar {
  padding: 12px;
  background-color: var(--kendo-color-surface-alt, #f5f5f5);
  border-bottom: 1px solid var(--kendo-color-border, #e0e0e0);
}

/* Loading State */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
