* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2328;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 28px 0 10px; }

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.sair, .voltar, .cancelar { font-size: 14px; }

.erro {
    background: #fde8e8; color: #9b1c1c;
    padding: 10px 14px; border-radius: 6px; margin-bottom: 16px;
}

.sucesso {
    background: #e6f6ec; color: #14532d;
    padding: 10px 14px; border-radius: 6px; margin-bottom: 16px;
    word-break: break-all;
}

.form-criar {
    display: flex; flex-wrap: wrap; gap: 10px;
    background: #fff; padding: 16px; border-radius: 8px;
    margin-bottom: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.form-criar input[type="url"] { flex: 2 1 260px; }
.form-criar input[type="text"] { flex: 1 1 160px; }

.form-criar input {
    padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: 14px;
}

.form-criar button {
    padding: 10px 18px; border: none; border-radius: 6px;
    background: #2563eb; color: #fff; font-size: 14px; cursor: pointer;
}

.form-criar button:hover { background: #1d4ed8; }

table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

th, td {
    text-align: left; padding: 10px 12px; font-size: 14px;
    border-bottom: 1px solid #eef0f2;
}

th { background: #fafbfc; font-weight: 600; color: #444; }

.destino { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acoes a { margin-right: 10px; font-size: 13px; }

/* Login */
.login-page {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
}

.login-box {
    background: #fff; padding: 32px; border-radius: 10px; width: 320px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.login-box h1 { font-size: 18px; margin-bottom: 18px; text-align: center; }
.login-box label { display: block; font-size: 13px; margin: 12px 0 4px; color: #555; }
.login-box input {
    width: 100%; padding: 10px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: 14px;
}
.login-box button {
    width: 100%; margin-top: 18px; padding: 10px; border: none; border-radius: 6px;
    background: #2563eb; color: #fff; font-size: 14px; cursor: pointer;
}
.login-box button:hover { background: #1d4ed8; }

/* Gráfico simples de barras (estatísticas) */
.grafico {
    display: flex; align-items: flex-end; gap: 6px; height: 130px;
    background: #fff; padding: 16px 12px 8px; border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06); overflow-x: auto;
}

.barra-wrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.barra { width: 14px; background: #2563eb; border-radius: 3px 3px 0 0; min-height: 4px; }
.barra-label { font-size: 10px; color: #777; margin-top: 4px; white-space: nowrap; }

.colunas { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.colunas > div { flex: 1 1 260px; }

.destino-completo { word-break: break-all; font-size: 14px; }
