html {
    min-height: 100%;
    min-height: 100dvh;
}

body {
    background-color: black;
    color: #f3e6b0;
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    overscroll-behavior: none;
    font-family: system-ui, sans-serif;
}

@font-face {
    font-family: 'Robotech';
    src: url('/ROBOTECH.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

div.container {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.text-gradient {
    margin: 0 0 1.5rem;
    width: min-content;
    height: min-content;
    font-family: 'Robotech';
    font-size: clamp(56px, min(16vw, 14vh), 140px);
    line-height: 0.9;
    background: linear-gradient(36deg, #664D00 0%, #ffe443 44%, #FFC000 83%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form {
    width: min(100%, 22rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c9b46a;
}

.form input {
    background: #111;
    border: 1px solid #664D00;
    color: #ffe443;
    font-size: 1.05rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0;
    font-family: inherit;
}

.form input:focus {
    outline: 1px solid #ffe443;
    border-color: #FFC000;
}

.form button {
    margin-top: 0.4rem;
    background: linear-gradient(36deg, #664D00 0%, #ffe443 44%, #FFC000 83%);
    border: 0;
    color: #1a1400;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    cursor: pointer;
}

.form button:hover {
    filter: brightness(1.08);
}

.status {
    margin: 0;
    font-size: 0.95rem;
}

.status-error {
    color: #ffb4a8;
}

.status-ok {
    color: #ffe443;
    font-size: 1.1rem;
}

.container-admin {
    justify-content: flex-start;
    align-items: stretch;
    padding: 2.5rem 1.25rem 3rem;
}

.container-admin .text-gradient,
.container-admin .admin-count,
.container-admin .leads {
    align-self: center;
}

@media (max-height: 560px) {
    .text-gradient {
        margin-bottom: 0.75rem;
        font-size: clamp(40px, 10vh, 72px);
    }

    .form {
        gap: 0.65rem;
    }
}

.admin-count {
    margin: 0 0 1.25rem;
    color: #c9b46a;
}

.leads {
    width: min(100%, 48rem);
    border-collapse: collapse;
    font-size: 0.95rem;
}

.leads th,
.leads td {
    text-align: left;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid #664D00;
}

.leads th {
    color: #c9b46a;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.leads .empty {
    color: #8a7a45;
    text-align: center;
}

.lead-whatsapp a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.lead-whatsapp a:hover,
.lead-whatsapp a:focus {
    color: #ffe443;
}

.leads .lead-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.lead-delete-form {
    margin: 0;
}

.lead-delete {
    background: transparent;
    border: 1px solid #8a3a2a;
    color: #ffb4a8;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
}

.lead-delete:hover,
.lead-delete:focus {
    outline: none;
    border-color: #ffb4a8;
    background: #2a1210;
}

@media (max-width: 720px) {
    .container-admin {
        padding: 1.15rem 0.85rem 2rem;
    }

    .container-admin .text-gradient {
        font-size: clamp(36px, 11vw, 56px);
        margin-bottom: 0.4rem;
    }

    .admin-count {
        margin-bottom: 0.7rem;
        font-size: 0.8rem;
    }

    .leads {
        display: block;
        width: 100%;
        align-self: stretch;
        font-size: 0.9rem;
        border-collapse: separate;
    }

    .leads thead {
        display: none;
    }

    .leads tbody {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .leads tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 0.5rem;
        row-gap: 0.1rem;
        padding: 0.4rem 0.55rem 0.4rem 0.65rem;
        background: #0c0c0c;
        border: 1px solid #664D00;
    }

    .leads td {
        padding: 0;
        border: 0;
    }

    .leads tr::after {
        content: "";
        order: 3;
        flex-basis: 100%;
        height: 0;
    }

    .lead-name {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .leads .lead-actions {
        order: 2;
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        text-align: right;
    }

    .lead-whatsapp,
    .lead-date {
        order: 4;
        font-size: 0.75rem;
        line-height: 1.25;
        color: #c9b46a;
    }

    .lead-date {
        color: #8a7a45;
    }

    .lead-date::before {
        content: "·";
        margin-right: 0.4rem;
        color: #664D00;
    }

    .lead-delete {
        padding: 0.25rem 0.5rem;
        font-size: 0.68rem;
    }

    .leads tr:has(.empty) {
        display: block;
        background: transparent;
        border: 0;
        padding: 0.75rem 0;
    }

    .leads tr:has(.empty)::after {
        display: none;
    }
}

.palavra {
    font-family: "Robotech";
}
