body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 20px;
}
header .logo {
    max-height: 150px;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto 8px auto;
}
header h1 {
    color: #333265;
    margin: 0;
}

.container,
.tabela-container {
    width: 70%;
    max-width: 700px;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 14px 14px 0 #333265;
    border: 2px solid #000000;
}
.tabela-container {
    overflow-x: auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
input, select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
button {
    padding: 12px;
    background: #025b7d;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
button:hover {
    background: #333265;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
thead {
    background: #025b7d;
    color: #ffffff;
}
th, td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}
tbody tr:nth-child(even) {
    background: #f0f0f0;
}
tbody tr:hover {
    background: #e0e0ff;
}

td button {
    margin-right: 5px;
    padding: 6px 10px;
    font-size: 0.95em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
td button:first-of-type {
    background-color: #025b7d;
    color: white;
}
td button:last-of-type {
    background-color: rgba(203, 16, 16, 0.86);
    color: white;
}

td .toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
td .toggle-btn.toggle-purple {
    background-color: #333265 !important;
    color: #fff !important;
}
td .toggle-purple:hover {
    background-color:#6a0dad !important;
}

.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #025b7d;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.tooltip-icon:hover {
    transform: scale(1.1);
}

.descricao-campos {
    display: none;
    font-size: 0.9em;
    color: #333265;
    margin-top: 5px;
    margin-bottom: 10px;
    border-left: 3px solid #025b7d;
    padding-left: 5px;
}

.muted {
    color: #9aa0a6;
    font-style: italic;
}

.registrador,
.profissional {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}
.registrador {
    background-color: #f7fbff;
    border-color: #b9d8e6;
}
.profissional {
    background-color: #fffdfa;
    border-color: #cfc6b2;
}
.registrador h3,
.profissional h3 {
    margin: 0 0 12px 0;
    color: #333265;
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}
footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}
footer .social-links img {
    height: 40px;
    width: auto;
    transition: transform 0.3s;
}
footer .social-links img:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .container,
    .tabela-container {
        width: 95%;
        padding: 22px;
    }

    header .logo {
        max-height: 100px;
    }

    th, td {
        font-size: 1em;
        padding: 10px;
    }

    button {
        padding: 10px;
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .tabela-container::before {
        content: "↔ Role para ver mais";
        display: block;
        font-size: 0.85em;
        color: #666;
        margin-bottom: 8px;
    }

    table {
        width: max-content;
        min-width: 600px;
        table-layout: auto;
    }

    th, td {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        margin-left: 8px;
    }

    button[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 0;
    }

    .container,
    .tabela-container {
        width: 98%;
        padding: 20px;
    }

    header .logo {
        max-height: 90px;
    }

    th, td {
        font-size: 0.95em;
        padding: 8px;
    }

    input, select,
    button {
        font-size: 1em;
        padding: 12px;
    }

    .registrador,
    .profissional {
        padding: 16px;
        margin-bottom: 20px;
    }
}
