* {
    box-sizing: border-box;
}

/* ── Fonte global Ubuntu ── */
html,
body,
button,
input,
select,
textarea,
p,
span,
div,
strong,
a {
    font-family: 'Ubuntu', 'Segoe UI', Arial, sans-serif !important;
}

body {
    background-color: #c0c0c0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 12px 44px;
    font-size: 18px;
}

.desktop {
    width: 100%;
    max-width: 580px;
}

.window {
    width: 100%;
}

/* Title bar */
.title-bar-text {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1.2s step-start infinite;
}

/* ── Avatar ── */
.avatar-area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 4px 8px;
}

.avatar-box {
    width: 76px;
    min-width: 76px;
    height: 76px;
    background: #d4d0c8;
    border: 2px inset #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.bio-text {
    line-height: 1.75;
    font-size: 18px;
}

.bio-text strong {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.bio-text .sub {
    font-size: 16px;
    color: #333;
}

hr {
    margin: 10px 0;
}

/* ── Labels de seção ── */
.section-label {
    font-weight: 700;
    font-size: 15px;
    margin: 4px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Projetos ── */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.project-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px !important;
    line-height: 1.4;
    /* fix: garante que imagens de emoji renderizam normalmente */
    color: windowtext;
}

.project-btn:not(:disabled):hover {
    background: #000080 !important;
    color: #fff !important;
}

.project-btn:not(:disabled):hover .desc {
    color: #ccc !important;
}

.project-btn:not(:disabled):active {
    background: #00006a !important;
}

.project-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.proj-icon {
    font-size: 22px;
    width: 28px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

.proj-info {
    flex: 1;
    min-width: 0;
}

.proj-name {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desc {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.tag {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.4px;
}

.tag.online {
    background: #006400;
    color: #fff;
    border-color: #004000;
}

.tag.offline {
    background: #b8b8b8;
    color: #666;
    border-color: #888;
}

/* ── Sociais ── */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.social-grid button {
    font-size: 15px !important;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 6px 16px;
    color: windowtext;
}

.social-grid button:hover {
    background: #000080 !important;
    color: #fff !important;
}

/* ── Fix emojis dentro de botões ──
   O 98.css define color:#000 em botões via `outline` e border tricks.
   Forçar color:windowtext + garantir que img.emoji não herde filtros. */
button img.emoji {
    display: inline-block !important;
    height: 1.1em !important;
    width: 1.1em !important;
    vertical-align: -0.15em !important;
    margin: 0 1px !important;
    /* reseta qualquer filter ou color-scheme herdado */
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Emojis fora de botões */
img.emoji {
    display: inline-block;
    height: 1.1em;
    width: 1.1em;
    vertical-align: -0.15em;
    margin: 0 1px;
}

.avatar-box img.emoji {
    height: 2.6em;
    width: 2.6em;
    vertical-align: middle;
    margin: 0;
}

/* ── Status bar ── */
.status-bar {
    flex-wrap: wrap;
}

.status-bar-field {
    font-size: 13px !important;
}

#ip-field {
    min-width: 170px;
}

#dt-field {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ── Rodapé ── */
.footer-note {
    font-size: 13px;
    color: #555;
    text-align: center;
    margin-top: 8px;
}

/* ── Responsivo ── */
@media (max-width: 440px) {
    body {
        padding: 12px 6px 32px;
        font-size: 16px;
    }

    .bio-text {
        font-size: 16px;
    }

    .bio-text strong {
        font-size: 18px;
    }

    .avatar-box {
        width: 60px;
        min-width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .project-btn {
        font-size: 14px !important;
        padding: 6px 8px;
        gap: 8px;
    }

    .proj-icon {
        width: 22px;
        font-size: 18px;
    }

    .proj-name {
        font-size: 14px;
    }

    .desc {
        font-size: 12px;
    }

    .tag {
        font-size: 11px;
        padding: 2px 6px;
    }

    .social-grid button {
        font-size: 14px !important;
        padding: 5px 12px;
    }

    #ip-field {
        min-width: 120px;
    }
}
