.status-card {
  background-color: #203F62; /* Menai navy */
  color: white;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.status-card .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #FFCB05; /* Menai Gold */
}

.status-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.status-badge {
  font-size: 0.85rem;
  border-radius: 100px;
  padding: 6px 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}

.status-ok .status-badge {
  background-color: #9BCF53; /* green tint */
  color: #002F6C;
}

.status-warning .status-badge {
  background-color: #FFCB05;
  color: #082644;
}

.status-down .status-badge {
  background-color: #C21807;
  color: white;
}

.status-subtext {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 10px;
}
.brand-logo img {
    max-height: 50px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: 0.3s ease;
  }
  .brand-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
  }
  
/* Custom Modal Styles - Enhanced Two-Column Layout */
.modal-dialog-split .modal-content {
    border-radius: 15px; /* Match theme border-radius */
    border: none; /* Remove default border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow for emphasis */
    overflow: hidden; /* Ensure content respects border radius */
}

/* Remove header/footer styles as they are no longer used */
/* .modal-header { ... } */
/* .modal-footer { ... } */

.modal-dialog-split .modal-form-col {
    background-color: var(--bg-white); /* Ensure background for light/dark modes */
    display: flex; /* Use flexbox for vertical centering */
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.modal-dialog-split .modal-body {
    padding: 2.5rem; /* Increase padding */
}

.modal-dialog-split .modal-title {
    font-family: var(--heading-font);
    font-weight: 700; /* Bolder title */
    font-size: 1.75rem; /* Larger title */
    color: var(--text-heading-color);
    margin-bottom: 0.75rem;
}

.modal-dialog-split .modal-body p {
    color: var(--body-color);
    margin-bottom: 2rem; /* More space below paragraph */
    font-size: 0.95rem;
}

.modal-dialog-split .modal-body .form-label {
    font-weight: 500;
    color: var(--text-heading-color);
    margin-bottom: 0.5rem;
}

.modal-dialog-split .modal-body .form-control {
    border-radius: 6px; /* Match theme inputs */
    border: 1px solid var(--border-color-1);
    padding: 0.85rem 1rem; /* Slightly taller inputs */
    background-color: var(--bg-white); /* Ensure input background matches */
    color: var(--body-color); /* Ensure text color is correct */
}

.modal-dialog-split .modal-body .form-control::placeholder {
    color: #999; /* Lighter placeholder text */
}

.modal-dialog-split .modal-body .form-control:focus {
    border-color: var(--primary-color-1);
    box-shadow: 0 0 0 0.2rem rgba(32, 63, 98, 0.25); /* Focus shadow using Menai Navy */
}

/* Style submit button (moved from footer) */
.modal-dialog-split .modal-submit-button {
    font-family: var(--heading-font);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.8rem 1.5rem; /* Match taller inputs */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background-color: var(--secondary-color); /* Menai Gold */
    border-color: var(--secondary-color);
    color: var(--color-1);
    font-size: 1rem;
}

.modal-dialog-split .modal-submit-button:hover {
    background-color: var(--primary-color-1); /* Menai Navy on hover */
    border-color: var(--primary-color-1);
    color: var(--text-white);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-logo {
  height: 48px;
  width: auto;
  margin-left: 16px;
}

@media (max-width: 600px) {
  .app-logo {
    height: 32px;
  }
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Add your custom styles here */

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner {
  border: 8px solid #e0e0e0;
  border-top: 8px solid #0077ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner-overlay.hidden {
  display: none;
}

/* Image column styles */
.modal-dialog-split .modal-image-col {
    padding: 0; /* Remove padding */
    display: flex; /* Use flex to contain image/placeholder */
    align-items: center; /* Center vertically if image is smaller */
    justify-content: center; /* Center horizontally */
    background-color: #f8f9fa; /* Light background for placeholder area */
}

.modal-dialog-split .modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the column area */
    /* Ensure radius matches if needed, though modal-content handles outer radius */
}

.modal-dialog-split .modal-image-placeholder {
    width: 100%;
    height: 100%; /* Take full height */
    min-height: 300px; /* Ensure a minimum height */
    background-color: #e9ecef; /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    /* You could add an icon here using ::before */
}

/* Repositioned close button */
.modal-dialog-split .modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10; /* Ensure it's above content */
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    border-radius: 50%;
    padding: 0.4rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-dialog-split .modal-close-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Adjustments for smaller screens */
@media (max-width: 767.98px) {
    .modal-dialog-split .modal-image-col {
        display: none; /* Hide image column on small screens */
    }
    .modal-dialog-split .modal-form-col {
        /* Take full width implicitly */
    }
    .modal-dialog-split .modal-content {
        border-radius: 15px; /* Ensure radius applies */
    }
     .modal-dialog-split .modal-body {
        padding: 2rem; /* Slightly reduce padding */
    }
}  