/* General Body Styles */
body {
    background-color: #f8f9fa; /* Light grey background */
}

.main-container {
    margin-top: 20px;
}

/* Login Page Specific Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* State and Alarm Color Coding */
.state-enabled {
    color: #198754; /* Green */
    font-weight: bold;
}
.state-disabled {
    color: #dc3545; /* Red */
    font-weight: bold;
}
.alarm-critical {
    color: #dc3545; /* Red */
    font-weight: bold;
}
.alarm-major {
    color: #fd7e14; /* Orange */
    font-weight: bold;
}
.alarm-minor {
    color: #ffc107; /* Yellow */
}
.alarm-warning {
    color: #0dcaf0; /* Cyan */
}

/* No Alarms Specific Style */
.no-alarms {
    color: #198754; /* Green */
    font-weight: bold;
    font-size: 1.1rem;
}

/* Highlight tip for serial input */
.highlight-tip {
    background-color: #fff3cd;
    color: #664d03;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

/* Integration Step Diagram Styles */
.step-diagram {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Make items same height */
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #dee2e6;
  list-style: none;
  overflow: hidden;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  text-decoration: none;
  transition: background-color 0.3s;
}

.step-box {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: bold;
    color: #fff;
    border: 2px solid rgba(0,0,0,0.1);
}

.step-arrow {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #6c757d;
}

.step:last-child .step-arrow {
    display: none;
}

/* Step Colors */
.step-green { background-color: #28a745; } /* Green */
.step-red { background-color: #dc3545; } /* Red */
.step-yellow { background-color: #ffc107; color: #212529 !important; } /* Yellow */
.step-grey { background-color: #6c757d; } /* Grey */
.step-diagram-new {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.step-diagram-new .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease-in-out;
}

.step-diagram-new .step-item:hover {
    transform: translateY(-5px);
}

.step-diagram-new .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-diagram-new .step-label {
    font-weight: 500;
}

.step-diagram-new .step-item.active .step-icon,
.step-diagram-new .step-item:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.column-filter {
    margin-top: 5px;
}

/* Highlight columns in summary tables */
.highlight-col {
    background-color: #fffbe6 !important; /* Light yellow background */
}

/* Autocomplete Styles */
.autocomplete-items {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-top: none;
    z-index: 9999;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.autocomplete-items .list-group-item.active,
.autocomplete-items .list-group-item:hover {
    background-color: #e9ecef;
    color: #000;
    cursor: pointer;
}

/* Sync Progress Modal Styles */
#syncProgressModal .modal-content,
#autoSyncProgressModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

#syncProgressModal .modal-header,
#autoSyncProgressModal .modal-header {
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
}

#syncProgressModal .modal-body,
#autoSyncProgressModal .modal-body {
    padding: 2rem 1.5rem;
}

#syncProgressModal .spinner-border,
#autoSyncProgressModal .spinner-border {
    animation-duration: 0.75s;
}

#syncProgressModal .progress,
#autoSyncProgressModal .progress {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
}

#syncProgressModal .progress-bar,
#autoSyncProgressModal .progress-bar {
    background-color: #0d6efd;
}