* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #6d7687;
    --border: #e5e9f0;
    --primary: #1769e0;
    --primary-dark: #0e55bd;
    --danger-bg: #fff0f0;
    --danger: #c62828;
    --shadow: 0 12px 35px rgba(23, 32, 51, .08);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #eaf2ff;
    font-size: 28px;
    margin-bottom: 16px;
}

h1, h2, p {
    margin-top: 0;
}

.auth-card h1 {
    margin-bottom: 8px;
}

.muted {
    color: var(--muted);
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 18px 0 7px;
}

input {
    width: 100%;
    border: 1px solid #ccd3df;
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .10);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    color: var(--text);
    border: 1px solid var(--border);
    background: #fff;
}

.btn-full {
    width: 100%;
    margin-top: 22px;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 18px 0;
    font-size: 14px;
}

.alert.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #ffd5d5;
}

.auth-footer {
    text-align: center;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    height: 72px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 22px;
    font-weight: 800;
}

.version {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 24px 60px;
}

.welcome-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-size: 25px;
    font-weight: 800;
}

.welcome-card h1 {
    margin-bottom: 5px;
    font-size: 24px;
}

.welcome-card p {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 7px 25px rgba(23, 32, 51, .04);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 18px;
}

dl {
    margin: 0;
}

dt {
    color: var(--muted);
    font-size: 12px;
    margin-top: 14px;
}

dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-dot.online {
    background: #23b26d;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2;
    color: #2d394d;
}

.next-card {
    margin-top: 20px;
}

.chat-placeholder {
    margin-top: 18px;
    padding: 35px;
    border: 1px dashed #ccd3df;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.placeholder-icon {
    font-size: 40px;
}

@media (max-width: 700px) {
    .auth-card {
        padding: 25px;
    }

    .topbar {
        padding: 0 18px;
    }

    .dashboard {
        padding: 20px 14px 40px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .welcome-card {
        align-items: flex-start;
    }

    .welcome-card h1 {
        font-size: 20px;
    }
}


/* Tahap 7 */
.topbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.account-page,.status-page{max-width:1050px;margin:0 auto;padding:30px 22px 60px}.account-header,.status-top{display:flex;align-items:center;gap:18px;margin-bottom:20px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.account-card h2{margin-bottom:18px}.account-card textarea{width:100%;border:1px solid #ccd3df;border-radius:10px;padding:12px 13px;font:inherit;resize:vertical}.profile-preview{display:flex;align-items:center;gap:14px;padding:12px;background:#f7f9fc;border-radius:14px;margin-bottom:16px}.profile-avatar,.status-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--primary);color:#fff;font-weight:800}.profile-avatar img,.status-avatar img{width:100%;height:100%;object-fit:cover}.subform{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}.form-message{min-height:18px;margin-top:9px;font-size:12px}.form-message.ok{color:#16834d}.form-message.error{color:#c62828}.status-create{margin-bottom:24px}.status-create textarea{width:100%;border:1px solid #ccd3df;border-radius:10px;padding:12px;font:inherit;resize:vertical}.status-create-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.status-list{display:flex;flex-direction:column;gap:9px}.status-item{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px 15px;cursor:pointer}.status-item:hover{box-shadow:var(--shadow)}.status-item.viewed{opacity:.62}.status-meta{flex:1;min-width:0}.status-meta strong,.status-meta span{display:block}.status-meta span{font-size:11px;color:var(--muted);margin-top:3px}.status-meta p{margin:7px 0 0;color:#455064;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-arrow{font-size:25px;color:#98a1af}.status-viewer{position:fixed;inset:0;background:rgba(10,18,30,.72);z-index:500;display:flex;align-items:center;justify-content:center;padding:20px}.status-viewer-card{position:relative;width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:22px}.status-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:28px;cursor:pointer}.status-viewer-head{display:flex;justify-content:space-between;gap:10px;padding-right:30px;margin-bottom:14px}.status-viewer-head span{font-size:11px;color:var(--muted)}.status-viewer-image{display:block;max-width:100%;max-height:65vh;margin:auto;border-radius:12px}.status-viewer-text{font-size:20px;line-height:1.5;white-space:pre-wrap;padding:20px 5px}.sidebar-footer-links{display:flex;gap:12px;flex-wrap:wrap}.sidebar-footer-links a{font-size:12px}@media(max-width:760px){.topbar-actions{gap:5px}.topbar-actions .btn{padding:8px 10px;font-size:12px}.account-grid{grid-template-columns:1fr}.account-header,.status-top{align-items:flex-start;flex-direction:column}.status-create-row{align-items:stretch;flex-direction:column}.status-create-row .btn{width:100%}}

.status-delete{border:0;background:#fff0f0;color:#c62828;border-radius:8px;padding:7px 9px;cursor:pointer;font-size:11px}.status-meta small{font-size:10px;color:#7d8795}

.topbar-logo{display:block;width:145px;height:auto;max-height:48px;object-fit:contain}@media(max-width:700px){.topbar-logo{width:120px}}

/* Global utility: used by Status and account overlays */
.hidden{display:none!important}
.status-page .btn:disabled{opacity:.6;cursor:wait}
.status-create textarea:focus,.status-create input[type="file"]:focus{outline:2px solid rgba(23,105,224,.18);outline-offset:1px}
.status-create-row{flex-wrap:wrap}
.status-create-row input[type="file"]{flex:1;min-width:220px}
