@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* Global page reset */
* {
    box-sizing: border-box;
}

/* Minimalist "No-Design" Auth Styles */
.auth-page {
    background: #fff;
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.auth-wrapper {
    width: 100%;
    max-width: 320px;
    padding: 0;
    background: #fff;
    text-align: center;
}

.auth-title {
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.auth-form input {
    width: 100%;
    padding: 10px 0;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
    color: #000;
    box-sizing: border-box;
    border-radius: 0;
    font-size: 13px;
    text-align: center;
}

.auth-form input:focus {
    outline: none;
}

.password-field {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    padding: 5px;
    user-select: none;
    z-index: 2;
}

.toggle-password svg {
    width: 22px;
    height: 22px;
}

.auth-form button {
    width: auto;
    padding: 0;
    background: none;
    color: #000;
    border: none;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    margin: 20px auto 0;
    font-size: 12px;
    text-decoration: underline;
}

.auth-form button:hover {
    color: #666;
}

.message-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    padding: 0;
    margin-bottom: 10px;
    border: none;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 11px;
    background: transparent;
    color: #000;
    pointer-events: auto;
    animation: slideIn 0.3s ease forwards;
}

.toast.error-box,
.toast.success-box {
    background: transparent;
    color: #000;
    border: none;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.error-box {
    color: #000;
    background: transparent;
}

.success-box {
    color: #000;
    background: transparent;
}

#js-error-msg:not(:empty) {
    display: block;
    color: #000;
    font-size: 11px;
    text-transform: capitalize;
}

.page-note {
    margin-top: 20px;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
}

.page-note a {
    color: #0000ee;
    text-decoration: underline;
}

/* IETF RFC Style Dashboard */
html.dashboard-page,
body.dashboard-page {
    background: #fff;
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

.dashboard-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 40px 25px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rfc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-shrink: 0;
    font-size: 11px;
}

.rfc-label {
    display: inline-block;
    width: 140px;
    /* Lebar tetap untuk menyelaraskan titik dua */
}

.rfc-label-short {
    display: inline-block;
    width: 80px;
}

.rfc-header-left,
.rfc-header-right {
    white-space: pre-line;
    line-height: 1.2;
}

.rfc-title {
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 14px;
    flex-shrink: 0;
}

.rfc-section {
    margin-bottom: 12px;
}

.rfc-section-title {
    font-weight: 400;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.rfc-content {
    padding-left: 15px;
}

.rfc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.rfc-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rfc-stat-label {
    font-weight: 400;
}

.rfc-health-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
}

.rfc-health-label {
    display: inline-block;
    width: 140px;
}

.rfc-health-bar {
    width: 350px;
    height: 8px;
    border: 1px solid #000;
    position: relative;
}

.rfc-health-fill {
    height: 100%;
    background: #000;
}

.rfc-activity-table {
    width: 100%;
    border-collapse: collapse;
}

.rfc-activity-table td {
    padding: 4px 0;
}

.rfc-activity-time {
    width: 200px;
    color: #555;
}

.rfc-activity-status {
    font-weight: 400;
}

.rfc-link {
    color: #0000ee;
    text-decoration: underline;
    cursor: pointer;
}

.rfc-footer {
    margin-top: auto;
    border-top: 1px dashed #ccc;
    padding-top: 5px;
    text-align: center;
    color: #777;
    font-size: 10px;
}

.btn-rfc-logout {
    background: none;
    border: none;
    color: #0000ee;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    cursor: pointer;
}

.btn-rfc-logout:hover {
    color: #ff0000;
}

/* Scrollbar adjustment */
.dashboard-wrapper::-webkit-scrollbar {
    width: 0px;
}

.hidden-dashboard-data {
    display: none;
}