body {
  padding: 10px;
  padding-top: 80px;
}

header.header {
  top: 0;
  left: 0;
  height: 70px;
  position: fixed;
  background-color: #26a668;
  width: 100%;
  border-bottom: 4px solid #f5ba14;
  text-align: right;
  padding-right: 10px;
  vertical-align: middle;
}

.bootbox.modal {
  z-index: 9999 !important;
}

.profile_photo {
  height: 40px;
  border: 2px solid black;
  margin-right: 10px;
  margin-top: 5px;
  border-radius: 50%;
}

.profile_photo_email {
  color: #3300ff;
}

.noBorder {
  border: none !important;
}

.bootbox-close-button {
  float: right;
  border: none !important;
  background-color: #ffffff !important;
}

.top-right, .top-left, .bottom-right {
  position: fixed;
  z-index: 100;
  padding: 10px;
}

.top-left, .top-right {
  top: 0;
}

.bottom-right {
  bottom: 0;
}

.top-left {
  left: 0;
}

.top-right {
  right: 0;
}

.ui-spinner {
  height: 50px;
  text-indent: -999em;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url(data:image/gif;base64,R0lGODlhLQAtAPMPANTU1O3t7fJoRfv7++9OJdvb2+Lf3/SBZPixn/7v6/m+r/b29ubm5u0wAM3Nzf///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAPACwAAAAALQAtAAAE//DJSesIBjg3WxMHklRkaUpBsa2c5L0fcs5VoLFrB7+ETJsDFY6l270Eox8lMBwWjS+fktnEPaEehVJiqBJd2NdhOul6ARNCuDFGnZiG8tAQGFQSioOx/egGSgsrcVwrDHYzCXoefGYOCyRCG4N9AI9bBgSMLAU1c1s0jSt/Ezc4k58VoStoKFWsqBWlOKOROJawFIFNnANVDLglDFUXw8AkvU0YTafGcnOyos0kVDjQK4fSE8heLK/ZpE3f4uPk5RVN3uLWXuXb1cnk1N2qkuT0DnTF3+4sdb7iwprYqcUCmzF+Kzg9kNct2zoHox6sY4brnjeG+MTRiyih1qQMBltpDADwcRMJXRkJbTAkMmDKPituLXmpiiTHCcpMybm5xJkrcF4m8Sxxz4oEbvW2YAx3FCnET0uNPnA6dMYCglK5FZCJykaVCa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LNTMNkP9MIvpD0ObTG336G0OA3htaXgRADs=);
}

.big-dialog > .modal-dialog {
  width: 80% !important;
  max-width: inherit !important;
}

.auto_refresh {
  float: right;
}

@media (min-width: 992px) {
  .container {
      max-width: 1200px;
  }
}

.narrow-container {
  max-width: 900px; /* Adjust this value to make the container narrower */
  margin: 0 auto; 
}

.container-fluid.center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.service-icon {
  height: 100px;
  max-width: 100%;
}

.clip-crop {
  clip-path: inset(0 5px 0 5px); 
}

.text-container {
  margin-top: 20px;
}

.admin-section {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.admin-section h5 {
  margin-bottom: 20px;
}

.button-group > button,
.checkbox-list li {
  margin-bottom: 3px;
}

.checkbox-list {
  list-style: none;
  padding-left: 30px;
}

.checkbox-list input[type="checkbox"] {
  margin-right: 5px; 
}

.centered-checkbox li {
  display: flex;
  justify-content: left;
  align-items: left;
}

@media (min-width: 768px) {
  .button-group {
    flex-direction: row;
    justify-content: center;
  }

  .button-group > button {
    margin: 5px;
  }
}

ul li {
  margin-bottom: 5px; 
  margin-top: 5px; 
  position: relative;
}

ul.text-left {
  text-align: left;
}


#timer {
  font-size: 2em;
  font-weight: bold;
  color: #d9534f; /* Bootstrap Danger Color */
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;

}

.btn:hover {
  transform: scale(1.05);
  transition: transform 0.2s;
}

/* Prevent zoom effect on specific secondary buttons */
.btn-outline-secondary:hover,
.btn-secondary:hover {
    transform: none; /* Override the general zoom */
}

.spinner-grow {
  width: 3rem;
  height: 3rem;
}

.timer-section {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  text-align: center;
}

#timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#timer-box span {
  font-size: 2em;
  color: #d9534f;
}

#pendingUsersPanel {
  margin-top: 15px;
}

#pendingUsersTable,
#pendingUpdatesTable {
  font-size: 14px;
}

#pendingUsersTable th,
#pendingUsersTable td,
#pendingUpdatesTable th,
#pendingUpdatesTable td {
  vertical-align: middle;
}

#pendingUsersTable .dt-center,
#pendingUpdatesTable .dt-center {
  text-align: center;
}

.pending-users-controls {
  padding: 5px 0;
}

#createSelectedBtn {
  font-weight: 600;
}

#selectedCount {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  color: #16274A;
}

#selectedUpdateCount {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  color: #16274A;
}

.bootbox-custom .modal-header {
  background-color: #007bff;
  color: white;
  border-bottom: none;
}

.bootbox-custom .modal-body {
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.bootbox-custom .modal-footer {
  border-top: none;
  padding: 10px 20px;
}

.bootbox-custom .section {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.bootbox-custom .section-success {
  background: #d4edda;
}

.bootbox-custom .section-danger {
  background: #f8d7da;
}

.bootbox-custom .section-warning {
  background: #fff3cd;
}

.bootbox-custom .section a {
  color: #007bff;
}

.auth-page-background {
    margin: 0;
    padding: 0;
    background-color: #16274A;
    font-family: Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-top: 0 !important; /* Override default padding */

    /* Flexbox for centering - REMOVING vertical centering */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    /* justify-content: center; */ /* REMOVED for fixed top margin */
    align-items: center; /* Keep for horizontal centering if flex is used */
}

.auth-container {
    background-color: #f2f2f2;
    max-width: 580px;
    margin-left: auto; /* Keep horizontal auto margins */
    margin-right: auto;
    width: 100%; /* Ensure it takes available width up to max-width */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Set fixed top margin and keep bottom margin */
    margin-top: 30px;
    margin-bottom: 20px;
    border-radius: 12px; /* Added border-radius */
}

/* Media Query for smaller screens */
@media (max-width: 575.98px) {
    .auth-container {
        margin-top: 15px; /* Reduce top margin */
        margin-bottom: 15px; /* Reduce bottom margin */
        /* Optionally reduce padding inside the card/content too */
        /* .auth-content-wrapper { padding: 15px; } */
        /* .auth-card { padding: 15px; } */
    }

    /* Optionally adjust heading size */
    /* .auth-header h1 { font-size: 20px; } */
}

.gold-bar {
    background-color: #C2A152;
    height: 11px;
    width: 100%;
}

.auth-header {
    text-align: center;
    padding: 12px;
    background-color: #f2f2f2;
}

.auth-header img.aiglon-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 2px;
}

.auth-header h1 {
    color: #16274A;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.auth-content-wrapper {
    padding: 5px 20px 20px 20px;
}

.auth-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

/* Add specific styles for message area in auth card */
.auth-card #message-area {
    min-height: 2rem; /* Changed from fixed height to min-height */
    margin-top: 0.75rem; /* Reduced from 1rem */
    position: relative;
}

.auth-card #message-area .alert-placeholder {
    height: 100%;
    display: none;
    margin: 0;
}

.auth-card #message-area:empty .alert-placeholder {
    display: block;
}

.auth-card #message-area .alert {
    position: relative; /* Changed from absolute to relative */
    margin: 0;
    padding: 0.75rem 1rem; /* Increased padding for better text wrapping */
    display: flex;
    align-items: center; /* Changed back to center for proper vertical centering */
    justify-content: space-between; /* Ensure proper spacing between text and close button */
    min-height: 2rem; /* Ensure minimum height for content */
    word-wrap: break-word; /* Ensure long text wraps properly */
    white-space: normal; /* Allow text to wrap naturally */
}

.auth-card #message-area .alert .btn-close {
    padding: 0.45rem; /* Reduced from 0.7rem */
    margin: 0;
    align-self: center; /* Changed back to center for proper vertical centering */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
    flex-shrink: 0;
    background-size: 0.75rem; /* Ensure the X icon is properly sized */
    opacity: 0.7;
    transition: opacity 0.15s ease-in-out;
}

.auth-card #message-area .alert .btn-close:hover {
    opacity: 1;
}

/* Ensure success alerts have proper spacing and text wrapping */
.auth-card #message-area .alert-success {
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
}

/* Ensure all alert types have consistent close button positioning */
.auth-card #message-area .alert-danger .btn-close,
.auth-card #message-area .alert-warning .btn-close,
.auth-card #message-area .alert-info .btn-close {
    align-self: center;
}

/* Ensure all alerts in the message area have consistent spacing */
.auth-card #message-area .alert {
    margin-bottom: 0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style the message text within alerts */
.auth-card #message-area .alert .message-text {
    flex: 1;
    margin-right: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* Form styles within the card */
.auth-card .form-group { /* Specificity increased */
    margin-bottom: 1.5rem;
}

.auth-card label { /* Specificity needed if label used outside card */
    color: #003366;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* REMOVED opacity-hidden rules */

/* Keep the box, hide the content */
.error-hidden { /* Keep state class name */
    /* Make text, background, and border transparent */
    color: transparent !important; 
    background-color: transparent !important; 
    border-color: transparent !important; 
    user-select: none; 
    pointer-events: none; 
}

/* Style the specific error alert within the cards - ALWAYS applies */
.auth-card #error-message-alert { /* Updated context */
    padding-bottom: 0rem; /* Reduced */
    margin-bottom: 0.1rem;
    min-height: calc(0.5rem + 0.5rem + 1.2em); /* Reduced font size impact slightly */
    font-size: 0.9em; /* Slightly smaller font */
}

/* Style the specific error alert within the cards - ALWAYS applies */
.auth-card #error-message-alert { /* Updated context */
    padding-top: 0.3rem; /* Reduced */
    padding-bottom: 0.1rem; /* Reduced */
    margin-top: -0.5rem;
}

.auth-button-primary { /* Renamed */
    background-color: #B11D23 !important;
    border-color: #B11D23 !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.auth-button-primary:hover {
    /* transform: translateY(-2px) !important; */ /* Removed upward transition */
    transform: none !important; /* Override general btn zoom */
    /* box-shadow: 0 6px 20px rgba(177, 29, 35, 0.3) !important; */ /* Removed shadow */
    /* Re-add color change */
    background-color: #8f171c !important; 
    border-color: #8f171c !important;
}

/* Override default blue focus ring */
.auth-button-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(177, 29, 35, 0.5) !important; /* Red focus shadow */
    /* Ensure background/border remain consistent on focus if needed */
    /* background-color: #B11D23 !important; */
    /* border-color: #B11D23 !important; */ 
}

/* Renamed forgot password / secondary links */
.auth-secondary-link {
     color: #16274A; /* Example style - Adjust as needed */
     text-decoration: none;
     border-bottom: 2px solid transparent; /* Added */
     transition: all 0.3s ease; /* Added */
}

.auth-secondary-link:hover {
    /* text-decoration: underline; */ /* Removed */
    color: #B11D23; /* Added - Match support link hover */
    border-bottom-color: #B11D23; /* Added - Match support link hover */
}

.auth-support-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* Container for the email link + copy icon */
.email-copy-container {
    display: inline-flex; /* Align items inline and allow flex properties */
    align-items: center;  /* Vertically align icon and text */
    gap: 0.5rem;         /* Space between email and icon */
}

/* Style for the copy icon */
.copy-icon {
    cursor: pointer;
    color: #16274A; /* Bootstrap primary blue, adjust as needed */
    transition: color 0.2s ease-in-out;
}

.copy-icon:hover {
    color: #B11D23; /* Darker blue on hover */
}

/* Placeholder for left-side spacer (match copy icon size roughly) */
.support-spacer {
    display: inline-block;
    width: 1em; /* Adjust width as needed based on icon size */
    height: 1em;
}

/* Renamed password reset footer, assuming it's part of auth flow */
.auth-footer { 
    background-color: #16274A;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

.auth-footer a { /* Renamed */
    color: #ffffff;
    text-decoration: none;
}

.auth-footer a:hover { /* Renamed */
    text-decoration: underline;
}

#submitLoading { /* Keep ID selector */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Keep mountain-overlay if specific */
.mountain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(22, 39, 74, 0.9), rgba(22, 39, 74, 0.95)),
                url('https://www.aiglon.ch/uploaded/themes/default_17/images/about-aiglon.jpg') center/cover no-repeat;
    z-index: -1;
}

.auth-accent-bar { /* Renamed */
    background: linear-gradient(90deg, #C2A152, #E5C677, #C2A152);
    height: 11px;
    width: 100%;
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    border-top-left-radius: 12px;  /* Match container */
    border-top-right-radius: 12px; /* Match container */
}

/* Keep keyframes name */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.auth-container { /* Renamed (already updated earlier, just check consistency) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.card-icon, .support-icon { /* Keep these specific icons for now, rename if become generic auth icons */
    text-align: center;
    margin-bottom: 20px;
    color: #16274A;
}

.auth-input { /* Renamed */
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.auth-input:focus { /* Renamed */
    border-color: #C2A152;
    box-shadow: 0 0 10px rgba(194, 161, 82, 0.2);
}

.auth-button-primary { 
    transition: all 0.3s ease !important;
    /* box-shadow: 0 4px 15px rgba(177, 29, 35, 0.2) !important; */ /* Removed shadow */
}


.auth-support-link { /* Renamed */
    color: #003366;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.auth-support-link:hover { /* Renamed */
    color: #B11D23;
    border-bottom-color: #B11D23;
}

.auth-loader-overlay { /* Renamed */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 39, 74, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-loader-content { /* Renamed */
    text-align: center;
}

.auth-loader-text { /* Renamed */
    color: white;
    margin-top: 10px;
    font-size: 1.2em;
    animation: pulse 1.5s infinite;
}

/* Keep keyframes name */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Optional footer animation reference (update selector if footer is renamed) */
/* .auth-footer .footer-content { animation: fadeInUp 1s ease; } */

/* Keep keyframes name */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New style for label and link alignment */
.label-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem; /* Adjust spacing as needed */
}

.label-link-row label {
    margin-bottom: 0; /* Remove default bottom margin from label inside this container */
}

/* Page Load Overlay Styles Commented Out 
#page-load-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999; 
    opacity: 1;
    animation: fadeOutOverlay 0.75s ease-out forwards; 
    pointer-events: none; 
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden; 
    }
}
End Page Load Overlay Styles */

/* Class to make body initially white to prevent background flash - Commented Out
.body-initial-white {
    background-color: white !important;
}
*/
