body {
    font-family: system-ui, Arial, sans-serif;
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem; /* increased padding for height */
    border-bottom: 1px solid #1565c0; /* darker blue border */
    background: #1976d2; /* blue background */
    color: #fff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.logo {
    height: 60px;
}

.container {
    /* Remove custom max-width and padding if using Bootstrap's container */
    max-width: none;
    margin: 40px !important;
}

.table {
    border-style: none;
    border: none;
    border-spacing: 0;
    width: 800px !important;
}

    /* Remove borders from table header and cells */
    .table th, .table td {
        border: none;
        padding: .5rem;
        text-align: left;
    }

.servers-table {
    border-spacing: 0 10px; /* 10px vertical space between rows */
    border-collapse: separate !important;
}
.alert {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    padding: .5rem 1rem;
    margin: 1rem 0;
}

.auth a {
    margin-left: 1rem;
}

form div {
    margin-bottom: .75rem;
}

label {
    display: block;
    margin-bottom: 0;
}

input {
    padding: .5rem;
    width: 20rem;
    max-width: 100%;
}

button {
    padding: .5rem 1rem;
    cursor: pointer;
    background: #1976d2; /* blue background */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.2s;
}

    button:hover, button:focus {
        background: #1565c0; /* darker blue on hover/focus */
    }

.red-box {
    background-color: #dc3545;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #b53d00;
    font-size: 1.18rem;
    margin-bottom: 1.5rem;
    width: 1000px !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* Make server DBMS icon images match text height */
.server-dbms-icon {
    height: 1em;
    vertical-align: text-bottom;
    width: auto;
}

/* Ensure <main> does not run out of the page */
main {
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    box-sizing: border-box;
    width: 100%;
}

.welcome-center {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.input-group-ios-horizontal {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #f9f9f9;
    width: 600px;
}

    .input-group-ios-horizontal label {
        background-color: #f0f0f0; /* light gray */
        color: #000; /* black */
        padding: 0 1.5rem 0 1.2rem; /* more left padding for left alignment */
        display: flex;
        align-items: center;
        font-weight: 500;
        border-right: 1px solid #d1d1d6;
        border-radius: 8px 0 0 8px;
        min-width: 200px; /* increased from 160px */
        width: 200px; /* increased from 160px */
        justify-content: flex-start; /* align content left */
        font-size: 1.05rem;
    }

    .input-group-ios-horizontal input {
        border: none;
        outline: none;
        padding: 0.85rem 1rem;
        font-size: 1.08rem;
        background: transparent;
        flex: 1 1 0;
        height: 40px;
        border-radius: 0 8px 8px 0; /* already 8px */
    }

        .input-group-ios-horizontal input:focus {
            background: #fff;
        }

    .input-group-ios-horizontal select.ios-select {
        border: none;
        outline: none;
        padding: 0.25rem 2.5rem 0.25rem 1rem; /* extra right padding for arrow */
        font-size: 0.92rem; /* reduced from 1.08rem */
        background: transparent;
        flex: 1 1 0;
        border-radius: 0 8px 8px 0; /* changed from 12px */
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        height: 40px;
        /* Custom drop arrow using SVG as background */
        background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='28' viewBox='0 0 28 28' width='28' xmlns='http://www.w3.org/2000/svg'><path d='M9 12l5 5 5-5'/></svg>");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1.1em;
        /* Remove accidental @import */
        /* @import url('site.css'); */
    }

        .input-group-ios-horizontal select.ios-select:focus {
            background: #fff;
        }

.input-group-flex-link {
    display: flex;
    align-items: center;
}


    .input-group-flex-link .forgot-password-link {
        margin-left: 1rem;
        white-space: nowrap;
        align-self: center;
        font-size: 0.95em;
        background: none;
        border: none;
        padding: 0;
        color: #007bff;
        text-decoration: underline;
        cursor: pointer;
    }

.input-group-flex-link {
    align-items: center;
}


.signout-link {
    color: #fff !important;
}

.forgot-password-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.95em;
    background: none;
    border: none;
    padding: 0;
    vertical-align: middle;
    /* Ensures the link aligns with the input */
}

.align-with-input {
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    padding: 0px;
    /* Adjust as needed for vertical alignment */
}

.status-success,
.status-failed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px; /* optional: ensures a minimum height for better vertical centering */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-success {
    background-color: #198754 !important; /* green */
    color: #fff !important ;
}

.status-failed {
    background-color: #f44336 !important; /* red */
    color: #fff !important;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    min-width: 320px;
    max-width: 90vw;
    padding: 24px 20px 16px 20px;
    font-family: inherit;
}
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#modalMessage {
    margin-bottom: 20px;
    color: #222;
    font-size: 1.1em;
    text-align: center;
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}
.modal-btn {
    padding: 8px 22px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    background: #0078d4;
    color: #fff;
    transition: background 0.2s;
}
.modal-btn.modal-cancel {
    background: #e0e0e0;
    color: #333;
}
.modal-btn:hover {
    background: #005fa3;
}
.modal-btn.modal-cancel:hover {
    background: #bdbdbd;
}

/* ...existing styles... */

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

/* ...existing styles... */

.inline-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* ...existing code... */

/* Spinner styles for login */
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid #ccc;
  border-top: 4px solid #0078d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* ...existing code... */
