/* body {
    background: #fafbfc;
    font-family: 'Inter', sans-serif;
    color: #1a222c;
    margin: 0;
    padding: 0;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}
.container {
    margin: 2rem auto;
    max-width: 800px;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(30,40,90,0.06);
    padding: 2rem;
}
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 0;
}
.status-dot {
    width: 1rem; height: 1rem; border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}
.status-dot.up { background: #3dd27c; }
.status-dot.down { background: #ff5a62; }

.history-bar {
    display: flex;
    gap: 2px;
    margin-top: 0.3rem;
}
.history-segment {
    width: 14px; height: 10px;
    border-radius: 2px;
    background: #eee;
}
.history-segment.up { background: #3dd27c; }
.history-segment.down { background: #ff5a62; }
.minor-text {
    color: #888; font-size: 0.98em;
}
.admin-list {
    margin-top: 1.5rem;
}
.admin-list li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn {
    background: #3dd27c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.6rem;
}
.btn.del {
    background: #ff5a62;
}
input, label {
    font-size: 1em;
    margin-right: 0.6rem;
}
form.inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
} */


/* body {
    background: #fafbfc;
    font-family: 'Inter', sans-serif;
    color: #1a222c;
    margin: 0;
    padding: 0;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.logo-img {
    height: 40px;
    width: auto;
}
.container {
    margin: 2rem auto;
    max-width: 900px;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(30,40,90,0.06);
    padding: 2rem;
}
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 0;
}
.status-dot {
    width: 1rem; height: 1rem; border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}
.status-dot.up { background: #3dd27c; }
.status-dot.down { background: #ff5a62; }
.history-bar {
    display: flex;
    gap: 2px;
    margin-top: 0.3rem;
}
.history-segment {
    width: 14px; height: 10px;
    border-radius: 2px;
    background: #eee;
}
.history-segment.up { background: #3dd27c; }
.history-segment.down { background: #ff5a62; }
.minor-text {
    color: #888; font-size: 0.98em;
}
.admin-list {
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
}
.admin-list li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn {
    background: #3dd27c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: background 0.2s;
    text-decoration: none;
}
.btn.del {
    background: #ff5a62;
}
.btn.logout {
    background: #4959e8;
    margin-top: 1.1rem;
    float: right;
    font-size: 1em;
}
input, label {
    font-size: 1em;
    margin-right: 0.6rem;
}
form.inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.flex-admin {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
}
.form-panel {
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.status-panel {
    min-width: 350px;
    background: #f6f7fa;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow: 0 1px 6px rgba(30,40,90,0.04);
}
.status-panel h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-align: center;
}
.add-endpoint-form {
    margin-bottom: 1.2rem;
    width: 100%;
}
.login-container {
    min-height: 65vh;
    justify-content: center;
}
.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f6f7fa;
    padding: 2rem 3rem 2.5rem 3rem;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(30,40,90,0.09);
}
.login-logo {
    height: 55px;
    margin-bottom: 1.2rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    min-width: 260px;
}
.login-form input {
    padding: 0.5em 0.8em;
    border: 1px solid #e3e7ee;
    border-radius: 5px;
    outline: none;
}
.login-form button.btn {
    margin-top: 1em;
    font-size: 1.05em;
}
@media (max-width: 900px) {
    .flex-admin { flex-direction: column; gap: 1.5rem; align-items: center; }
    .container { padding: 1.1rem; }
    .status-panel, .form-panel { min-width: unset; width: 100%; }
} */


/* body {
    background: #fafbfc;
    font-family: 'Inter', sans-serif;
    color: #1a222c;
    margin: 0;
    padding: 0;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.logo-img {
    height: 40px;
    width: auto;
}
.container {
    margin: 2rem auto;
    max-width: 900px;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(30,40,90,0.06);
    padding: 2rem;
}
.status-table {
    width: 100%;
}
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 0;
}
.status-dot {
    width: 1rem; height: 1rem; border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}
.status-dot.up { background: #3dd27c; }
.status-dot.down { background: #ff5a62; }
.history-bar {
    display: flex;
    gap: 2px;
    margin-top: 0.3rem;
}
.history-segment {
    width: 14px; height: 10px;
    border-radius: 2px;
    background: #eee;
}
.history-segment.up { background: #3dd27c; }
.history-segment.down { background: #ff5a62; }
.minor-text {
    color: #888; font-size: 0.98em;
}
.admin-list {
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
}
.admin-list li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn {
    background: #3dd27c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: background 0.2s;
    text-decoration: none;
}
.btn.del {
    background: #ff5a62;
}
.btn.logout {
    background: #4959e8;
    margin-top: 1.1rem;
    float: right;
    font-size: 1em;
}
input, label {
    font-size: 1em;
    margin-right: 0.6rem;
}

.flex-admin {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
}

.form-panel {
    flex: 0 0 340px;
    min-width: 270px;
    max-width: 370px;
    background: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(30,40,90,0.07);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-right: 1rem;
}

.form-panel h3,
.panel-title {
    font-size: 1.17em;
    font-weight: 600;
    margin-bottom: 1.4em;
    color: #4959e8;
    text-align: center;
}

.add-endpoint-form {
    margin-bottom: 1.2rem;
    width: 100%;
}
.add-endpoint-form,
.add-endpoint-form-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.15em;
}

.add-endpoint-form label,
.add-endpoint-form-vertical label {
    color: #4959e8;
    font-size: 1.04em;
    margin-bottom: 0.25em;
}
.add-endpoint-form input,
.add-endpoint-form-vertical input {
    padding: 0.52em 0.92em;
    border: 1px solid #e3e7ee;
    border-radius: 5px;
    font-size: 1em;
    background: #fff;
    transition: border 0.2s;
}
.add-endpoint-form input:focus,
.add-endpoint-form-vertical input:focus {
    border-color: #4959e8;
}

.add-endpoint-form .btn,
.add-endpoint-form-vertical .btn {
    margin-top: 0.6em;
    width: 100%;
    justify-content: center;
    font-size: 1.08em;
}

.status-panel {
    flex: 1 1 0;
    min-width: 340px;
    background: #fff;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(30,40,90,0.07);
}

.status-panel h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-align: center;
}

@media (max-width: 900px) {
    .flex-admin { flex-direction: column; gap: 1.5rem; align-items: center; }
    .form-panel, .status-panel { min-width: unset; width: 100%; margin-right: 0; }
    .add-endpoint-form, .add-endpoint-form-vertical { gap: 0.9em; }
} */


/* body {
    background: #fafbfc;
    font-family: 'Inter', sans-serif;
    color: #1a222c;
    margin: 0;
    padding: 0;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.logo-img {
    height: 40px;
    width: auto;
}
.container {
    margin: 2rem auto;
    max-width: 900px;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(30,40,90,0.06);
    padding: 2rem;
}
.status-table {
    width: 100%;
}
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 0;
    gap: 2rem;
}
.status-row > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}
.status-dot {
    width: 1rem; height: 1rem; border-radius: 50%;
    display: inline-block;
    margin-right: 0.3rem;
}
.status-dot.up { background: #3dd27c; }
.status-dot.down { background: #ff5a62; }
.status-service-name {
    font-size: 1.04em;
    min-width: 90px;
    margin-right: 0.2rem;
}
.status-service-url {
    margin-left: 0.4rem;
    color: #aaa;
    font-size: 0.98em;
    min-width: 120px;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.history-bar {
    display: flex;
    gap: 6px;
    margin-top: 0.9em;
    margin-left: 0;
    width: 100%;
    max-width: 350px;
}
.history-segment {
    flex: 1 1 0;
    min-width: 0;
    height: 12px;
    border-radius: 2px;
    background: #eee;
}
.history-segment.up { background: #3dd27c; }
.history-segment.down { background: #ff5a62; }
.minor-text {
    color: #888; font-size: 0.98em;
}
.flex-admin {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
}
.form-panel {
    flex: 0 0 340px;
    min-width: 270px;
    max-width: 370px;
    background: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(30,40,90,0.07);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-right: 1rem;
}
.form-panel h3,
.panel-title {
    font-size: 1.17em;
    font-weight: 600;
    margin-bottom: 1.4em;
    color: #4959e8;
    text-align: center;
}
.add-endpoint-form {
    margin-bottom: 1.2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.15em;
}
.add-endpoint-form label {
    color: #4959e8;
    font-size: 1.04em;
    margin-bottom: 0.25em;
}
.add-endpoint-form input {
    padding: 0.52em 0.92em;
    border: 1px solid #e3e7ee;
    border-radius: 5px;
    font-size: 1em;
    background: #fff;
    transition: border 0.2s;
}
.add-endpoint-form input:focus {
    border-color: #4959e8;
}
.add-endpoint-form .btn {
    margin-top: 0.6em;
    width: 100%;
    justify-content: center;
    font-size: 1.08em;
}
.btn {
    background: #3dd27c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: background 0.2s;
    text-decoration: none;
}
.btn.del {
    background: #ff5a62 !important;
}
.btn.logout {
    background: #ff3b30 !important;
    color: #fff;
    margin-top: 1.1rem;
    float: right;
    font-size: 1em;
}
.btn.logout:hover, .btn.logout:focus {
    background: #d32f2f !important;
}
.status-panel {
    flex: 1 1 0;
    min-width: 340px;
    background: #fff;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(30,40,90,0.07);
}
.status-panel h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-align: center;
}
.admin-list {
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
}
.admin-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 0.9em 1.1em;
    box-shadow: 0 1px 3px rgba(60,80,90,0.03);
}
.admin-status-service {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.admin-list .status-dot {
    width: 0.8em; height: 0.8em; margin-right: 0.5em;
    border-radius: 50%;
    display: inline-block;
}
.admin-list .status-dot.up {
    background: #22bb33;
}
.admin-list .status-dot.down {
    background: #ff3b30;
}
.admin-list b {
    color: #222;
    font-weight: 600;
    margin-right: 0.5em;
}
.admin-list .minor-text {
    color: #555;
    margin-left: 0.4em;
    font-size: 0.96em;
}
.admin-status-summary {
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.status-summary.up {
    color: #22bb33;
    font-weight: 600;
}
.status-summary.down {
    color: #ff3b30;
    font-weight: 600;
}
.status-summary {
    font-weight: 500;
    margin-right: 0.6em;
}
@media (max-width: 900px) {
    .flex-admin { flex-direction: column; gap: 1.5rem; align-items: center; }
    .form-panel, .status-panel { min-width: unset; width: 100%; margin-right: 0; }
    .add-endpoint-form { gap: 0.9em; }
    .status-row, .status-row-main { flex-direction: column; align-items: flex-start; gap: 0.7em; }
    .status-row-right { min-width: unset; text-align: left; }
    .header { flex-direction: column; gap: 0.7em; }
} */

body {
    background: #fafbfc;
    font-family: 'Inter', sans-serif;
    color: #1a222c;
    margin: 0;
    padding: 0;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e3e7ee;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img {
    height: 40px;
    width: auto;
}
.container {
    margin: 2rem auto;
    max-width: 1000px;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(30,40,90,0.06);
    padding: 2rem;
}

.status-table { width: 100%; }
.centered-container { display: flex; flex-direction: column; align-items: center; }
.status-row {
    display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid #e3e7ee;
    padding: 1rem 0; gap: 1.5rem;
}
.status-row-main { flex: 1; min-width: 0; }
.status-dot {
    width: 1rem; height: 1rem; border-radius: 50%;
    display: inline-block; margin-right: 0.4rem;
}
.status-dot.up { background: #3dd27c; }
.status-dot.down { background: #ff5a62; }
.status-service-name { font-size: 1.05em; margin-right: 0.3rem; }
.status-service-url {
    color: #aaa; font-size: 0.95em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 200px; display: inline-block;
}
.history-bar {
    /* display: flex; flex: 1; height: 14px;
    margin-top: 0.6rem; border-radius: 3px; overflow: hidden;
        justify-content: space-between; 
            gap: 4px;               */

    display: flex;
    gap: 4px;              /* space between each segment */
    margin-top: 0.6rem;
    flex-wrap: nowrap;
    width: 800px;
    




}
.history-segment {
    /* flex-grow: 1;
    width: 8px;            
    height: 14px;          
    background: #eee;
        margin-right: 2px;       */

    width: 10px;            /* fixed width per segment */
    height: 14px;          /* small “pill” bar */
    border-radius: 3px;
    background: #eee;

        
}
.history-segment:last-child {
    margin-right: 0;         /* no gap after the last one */
}

.history-segment.up { background: #3dd27c; }
.history-segment.down { background: #ff5a62; }
.minor-text { color: #888; font-size: 0.9em; }

/* ---- ADMIN PAGE ---- */
.flex-admin { display: flex; gap: 2rem; align-items: flex-start; }
.form-panel {
    flex: 0 0 320px;
    background: #f9fafb;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(30,40,90,0.07);
}
.add-endpoint-form { display: flex; flex-direction: column; gap: 0.8em; }
.add-endpoint-form input {
    padding: 0.5em 0.8em;
    border: 1px solid #ccc; border-radius: 5px;
}
.btn {
    background: #3dd27c; color: #fff; border: none;
    padding: 0.5rem 1rem; border-radius: 4px;
    cursor: pointer; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.3em;
}
.btn.del { background: #ff5a62; }
.btn.logout { background: #ff3b30; margin-top: 1rem; width: 100%; justify-content: center; }

.status-panel {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(30,40,90,0.07);
}
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-item {
    display: flex; justify-content: space-between;
    align-items: center; padding: 0.8rem 1rem;
    border-radius: 6px; margin-bottom: 0.8rem;
    background: #f7f8fa;
}
.admin-status-left {
    display: flex; align-items: center; gap: 0.6em;
}
.admin-status-right {
    display: flex; align-items: center; gap: 0.8em;
}
.status-summary.up { color: #22bb33; font-weight: 600; }
.status-summary.down { color: #ff3b30; font-weight: 600; }

@media (max-width: 900px) {
    .flex-admin { flex-direction: column; }
    .admin-item { flex-direction: column; align-items: flex-start; gap: 0.6em; }
    .history-bar { max-width: 100%; }
}


body, .login-body {
    background: #f6f7f9;
    font-family: 'Inter', sans-serif;
    color: #181818;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.login-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f6f7f9;
}
.login-card {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 6px 32px rgba(30,40,90,0.07);
    padding: 2.5rem 2.2rem 2.1rem 2.2rem;
    min-width: 320px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-logo-big {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 11px;
    margin-bottom: 1.1rem;
    background: #f3f3f3;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(60,60,60,0.05);
}
.login-title {
    font-size: 1.18em;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.6rem;
    color: #181818;
    text-align: center;
}
.login-form-stylish {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1em;
}
.form-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: #f8f8fa;
    border-radius: 6px;
    padding: 0.6em 0.9em;
    border: 1px solid #ececec;
    transition: border 0.2s;
}
.form-group:focus-within {
    border-color: #111;
}
.form-group label {
    color: #aaa;
    font-size: 1.18em;
    margin-right: 0.3em;
}
.login-form-stylish input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1em;
    color: #181818;
    padding: 0.42em 0.2em;
    letter-spacing: 0.01em;
}
.login-form-stylish input::placeholder {
    color: #bdbdbd;
    opacity: 1;
}
.btn.login-btn {
    background: #f2f3f6;            /* light gray */
    color: #222;                    /* dark text */
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 0.54em 0;
    font-size: 1.08em;
    margin-top: 0.4em;
    width: 100%;
    transition: background 0.15s;
    box-shadow: 0 2px 12px rgba(30,40,90,0.05);
    display: flex;
    align-items: center;
    justify-content: center;        /* Center icon and text horizontally */
    gap: 0.5em;                     /* Space between icon and text */
}
.btn.login-btn:hover,
.btn.login-btn:focus {
    background: #e6e8eb;
    color: #111;
}
@media (max-width: 600px) {
    .login-card { min-width: unset; width: 98vw; padding: 1.4rem 0.6rem; }
}