* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #06110d;
    color: #f5f5f5;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #092015, #06110d);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    transition: 0.3s;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

/* LOGO COM IMAGEM */
.logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    padding: 6px;

    background: linear-gradient(145deg, #22c55e, #16a34a);
    box-shadow: 0 10px 25px rgba(34,197,94,0.35);

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #06110d;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .logo {
        width: 48px;
        height: 48px;
    }
}

.brand h2 {
    font-size: 18px;
}

.brand small {
    color: #9ca3af;
}

.sidebar nav {
    display: grid;
    gap: 10px;
}

.sidebar nav a {
    color: #d1d5db;
    text-decoration: none;
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    display: block;
    transition: 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(34,197,94,0.16);
    color: #fff;
    border-left: 3px solid #22c55e;
}

.sidebar nav .sair {
    color: #fecaca;
}

.sidebar nav .sair:hover {
    background: rgba(239,68,68,0.16);
    border-left: 3px solid #ef4444;
}

/* MENU EM GRUPOS */
.menu-group {
    overflow: hidden;
}

.menu-title {
    margin: 18px 0 6px;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 700;
    padding-left: 10px;
    letter-spacing: 0.5px;
}

.menu-title.clickable {
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-title.clickable:hover {
    background: rgba(34,197,94,0.12);
    color: #fff;
}

.menu-title.clickable::after {
    content: "›";
    font-size: 18px;
    transition: 0.3s;
}

.menu-group.active .menu-title.clickable::after {
    transform: rotate(90deg);
}

.menu-group ul {
    max-height: 0;
    overflow: hidden;
    display: grid;
    gap: 8px;
    transition: max-height 0.3s ease;
}

.menu-group.active ul {
    max-height: 500px;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.topbar h1 {
    font-size: 32px;
}

.topbar p {
    color: #9ca3af;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.card,
.panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.card {
    padding: 24px;
}

.card h3 {
    color: #a7f3d0;
    font-size: 15px;
    margin-bottom: 15px;
}

.card strong {
    font-size: 34px;
}

.card.danger h3 {
    color: #fca5a5;
}

.card.success h3 {
    color: #86efac;
}

.panel {
    padding: 24px;
    backdrop-filter: blur(12px);
}

/* BOTÕES */
.atalhos {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.atalhos a,
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.atalhos a,
.btn-primary {
    color: #052e16;
    background: #22c55e;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

/* BUSCA */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box button {
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    background: #22c55e;
    color: #052e16;
    font-weight: 800;
    cursor: pointer;
}

/* TABELA */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.table thead {
    background: rgba(34,197,94,0.15);
}

.table th {
    padding: 16px;
    font-size: 12px;
    text-transform: uppercase;
    color: #86efac;
    letter-spacing: 1px;
    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 14px;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #f8fafc;
}

.table tr:hover td {
    background: rgba(34,197,94,0.08);
}

/* IMAGENS ANIMAL */
.animal-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

.animal-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BADGE */
.badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    display: inline-block;
}

/* AÇÕES */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actions a,
.btn-mini {
    color: #fff;
    background: rgba(255,255,255,0.08);
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.btn-mini:hover,
.actions a:hover {
    background: #22c55e;
    color: #052e16;
}

.btn-mini.danger:hover {
    background: #ef4444;
    color: #fff;
}

/* FORM */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #d1d5db;
    font-weight: 700;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}

.form-group select option {
    color: #000;
}

.preview-img {
    max-width: 220px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* VISUALIZAÇÃO DO ANIMAL */
.animal-view {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

.animal-photo img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
}

.no-photo {
    width: 100%;
    height: 320px;
    border-radius: 24px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.animal-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.info-grid div {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 12px;
}

.observacoes {
    margin-top: 20px;
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 14px;
}

.observacoes p {
    margin-top: 8px;
    color: #d1d5db;
    line-height: 1.6;
}

/* LOGIN */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(34,197,94,0.25), transparent 40%),
        #06110d;
}

.login-card {
    width: 380px;
    padding: 35px;
    border-radius: 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 8px;
}

.login-card p {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 24px;
}

.login-card input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: none;
    outline: none;
}

.login-card button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #22c55e;
    color: #052e16;
    font-weight: bold;
    cursor: pointer;
}

.alerta {
    background: #7f1d1d;
    color: #fee2e2;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* LAUDO */
.laudo-box {
    display: grid;
    gap: 20px;
}

.laudo-header {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.laudo-header h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.laudo-header p {
    color: #9ca3af;
}

.laudo-section {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
}

.laudo-section h3 {
    color: #86efac;
    margin-bottom: 10px;
}

.laudo-section p {
    color: #d1d5db;
    line-height: 1.7;
}

/* MEDICAMENTOS */
.med-box {
    margin: 16px 0;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.18);
    border-radius: 16px;
    padding: 16px;
}

.med-item {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: grid;
    gap: 4px;
}

.med-item span {
    font-weight: 800;
    color: #86efac;
}

.med-item small {
    color: #d1d5db;
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background: #22c55e;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 18px;
    z-index: 1100;
    cursor: pointer;
}

/* ALERT JS */
.alert-js {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    animation: alertIn 0.3s ease;
}

.alert-js.success {
    background: #22c55e;
    color: #052e16;
}

.alert-js.error {
    background: #ef4444;
}

@keyframes alertIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .app {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        width: 270px;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        padding: 70px 15px 20px;
    }

    .cards,
    .form-grid,
    .animal-view,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .topbar h1 {
        font-size: 26px;
    }

    .search-box {
        flex-direction: column;
    }

    .login-card {
        width: calc(100% - 30px);
    }
}
/* ==============================
   AJUSTES PREMIUM APPA/CEMPRA
============================== */

/* LOGO PREMIUM */
.logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    padding: 2px;
    box-shadow: 0 10px 25px rgba(34,197,94,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: #06110d;
}

/* SIDEBAR MAIS PROFISSIONAL */
.sidebar {
    backdrop-filter: blur(14px);
    box-shadow: 15px 0 45px rgba(0,0,0,0.25);
}

.sidebar nav a {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.sidebar nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(34,197,94,0.18),
        transparent
    );
    opacity: 0;
    transition: 0.3s;
}

.sidebar nav a:hover::before {
    opacity: 1;
}

.sidebar nav a.active {
    background: rgba(34,197,94,0.18);
    color: #fff;
    border: 1px solid rgba(34,197,94,0.25);
    box-shadow: inset 4px 0 0 #22c55e;
}

/* BOTÕES DOS GRUPOS */
.menu-title.clickable {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.035);
    color: #b7c7d8;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-title.clickable:hover {
    background: rgba(34,197,94,0.12);
    color: #fff;
    border-color: rgba(34,197,94,0.35);
}

.menu-title.clickable::after {
    content: "›";
    font-size: 22px;
    transition: 0.3s;
}

.menu-group.active .menu-title.clickable::after {
    transform: rotate(90deg);
}

/* SUBMENU */
.submenu {
    max-height: 0;
    overflow: hidden;
    display: grid;
    gap: 7px;
    padding-left: 0;
    margin-top: 0;
    transition: all 0.35s ease;
}

.menu-group.active .submenu {
    max-height: 600px;
    margin-top: 8px;
}

.submenu a {
    font-size: 14px;
    opacity: 0.9;
    padding-left: 16px;
}

/* DASHBOARD */
.topbar h1 {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(90deg, #ffffff, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topbar p {
    color: #9fd8c0;
}

/* CARDS PREMIUM */
.card {
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 70%);
    top: -80px;
    right: -80px;
    opacity: 0;
    transition: 0.35s ease;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 75px rgba(0,0,0,0.5);
    border-color: rgba(34,197,94,0.25);
}

.card h3 {
    font-weight: 800;
}

.card strong {
    font-size: 36px;
    font-weight: 900;
}

/* PAINEL */
.panel {
    border-radius: 26px;
    transition: 0.3s ease;
}

.panel:hover {
    border-color: rgba(34,197,94,0.2);
}

/* CORREÇÃO DE LARGURA */
.content {
    width: 100%;
    overflow-x: hidden;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .topbar h1 {
        font-size: 30px;
    }

    .card strong {
        font-size: 30px;
    }
}