* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; }
body { background: #fff7fb; color: #3d2031; }
a { text-decoration: none; color: inherit; }
label { display: block; margin-bottom: 8px; font-size: 14px; color: #7a3557; font-weight: 600; }
input, select, textarea, button {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #f2c7dc;
    outline: none; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: #d62f7a; box-shadow: 0 0 0 3px rgba(214,47,122,.12);
}
textarea { resize: vertical; min-height: 90px; }
button { cursor: pointer; }
code { background: #fff1f7; padding: 2px 6px; border-radius: 6px; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 270px; background: linear-gradient(180deg, #ff4fa0, #d62f7a); color: #fff;
    padding: 30px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.sidebar h2 { font-size: 26px; margin-bottom: 8px; }
.sidebar-subtitle { color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.6; }
.sidebar nav { display: flex; flex-direction: column; gap: 12px; }
.sidebar nav a,
.logout-form button {
    color: #fff; background: rgba(255,255,255,.14); padding: 12px 14px; border-radius: 12px; transition: .2s;
    border: none; text-align: left; font-size: 14px;
}
.sidebar nav a:hover, .sidebar nav a.active, .logout-form button:hover { background: rgba(255,255,255,.24); }
.content { flex: 1; padding: 30px; }
.topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.topo h1 { margin-bottom: 6px; }
.cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 24px;
}
.cards-secondary { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card, .form-card, .tabela-box {
    background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 8px 25px rgba(214,47,122,.10);
}
.card h3 { font-size: 15px; color: #8c4c69; margin-bottom: 10px; }
.card strong { font-size: 28px; color: #c81f6c; display: block; }
.card-link { display: inline-block; margin-top: 10px; color: #a23568; font-size: 13px; }
.small-card strong { font-size: 22px; }
.tiny-text { font-size: 15px !important; line-height: 1.5; word-break: break-word; }
.form-card, .tabela-box { margin-bottom: 24px; }
.form-card h2, .tabela-box h2 { margin-bottom: 8px; }
.texto-apoio { color: #8c4c69; font-size: 14px; line-height: 1.5; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.setup-form { margin-top: 18px; }
.filters-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px; align-items: end; }
.full-width { grid-column: 1 / -1; }
.actions-row { display: flex; justify-content: flex-start; }
.btn {
    background: linear-gradient(90deg, #ff4fa0, #d62f7a); color: #fff; border: none; font-weight: bold;
}
.btn:hover, .btn-mini:hover { transform: translateY(-1px); }
.btn-mini {
    display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 10px;
    background: #ff4fa0; color: #fff; border: none; font-size: 13px; min-width: 90px;
}
.btn-mini.secondary { background: #fff1f7; color: #9d1d58; border: 1px solid #f2c7dc; }
.btn-mini.danger { background: #b51f5b; }
.btn-mini.dark { background: rgba(255,255,255,.15); }
.inline-form { display: inline-block; }
.actions-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.box-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.box-header.wrap { flex-wrap: wrap; }
.contador { color: #8c4c69; font-size: 14px; }
.texto-vazio { color: #8c4c69; font-size: 14px; }
.badge {
    display: inline-block; padding: 6px 10px; border-radius: 999px; background: #ffe3f0; color: #9d1d58; font-size: 12px; font-weight: 700;
}
.badge.status-agendado { background: #ffe3f0; color: #9d1d58; }
.badge.status-concluido { background: #e8fff2; color: #146c43; }
.badge.status-cancelado { background: #fbe4e4; color: #a32020; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 14px 10px; border-bottom: 1px solid #f5d7e5; text-align: left; font-size: 14px; vertical-align: top; }
table th { color: #a23568; }
.alerta {
    padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; border: 1px solid transparent; font-size: 14px;
}
.alerta.erro { background: #ffe0ea; color: #9f184f; border-color: #f2b4ca; }
.alerta.sucesso { background: #e8fff2; color: #146c43; border-color: #b7e4c7; }
.login-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ffe1ee, #fff7fb); padding: 20px;
}
.login-box {
    width: 100%; max-width: 460px; background: #fff; padding: 32px; border-radius: 24px; box-shadow: 0 12px 35px rgba(214,47,122,.15);
}
.setup-box { max-width: 980px; }
.login-box h1 { text-align: center; color: #c81f6c; margin-bottom: 8px; }
.subtitulo { text-align: center; color: #8c4c69; margin-bottom: 18px; line-height: 1.6; }
.form { display: flex; flex-direction: column; gap: 12px; }
.rodape-login { display: block; text-align: center; margin-top: 16px; color: #8c4c69; }
.info-box {
    margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #fff4f9; color: #7a3557; line-height: 1.6;
    border: 1px solid #f7d3e4;
}
.info-box.compact { font-size: 14px; }
.search-form { display: flex; gap: 10px; align-items: center; }
.search-form input { min-width: 260px; }
@media (max-width: 1120px) {
    .filters-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .content { padding: 18px; }
    .box-header, .topo { flex-direction: column; align-items: flex-start; }
    .search-form, .filters-grid { width: 100%; grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; }
}
