/* --- ESTILOS GERAIS DO DASHBOARD (SEÇÕES, FORMS, TABELAS) --- */
html {
    font-size: 70%; /* Reduzido de 80% para 70% (redução de ~12.5% adicional para compactar) */
}

.dashboard-section {
    background-color: #ffffff;
    padding: 1.6rem; /* Reduzido de 2rem para 1.6rem (~20%) */
    border-radius: 12px; /* Reduzido de 15px para 12px */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05); /* Sombras menores */
    margin-bottom: 1.6rem; /* Reduzido de 2rem */
}

.dashboard-section h2 {
    text-align: left;
    font-size: 1.28rem; /* Reduzido de 1.6rem (~20%) */
    margin-top: 0;
    margin-bottom: 1.28rem; /* Reduzido de 1.5rem */
    display: flex;
    align-items: center;
}

.dashboard-section h2 i {
    margin-right: 0.8rem; /* Reduzido de 1rem */
    color: #4f46e5;
}

/* Estilo para o cabeçalho de seção que tem um botão (Ex: Lista de Clientes) */
.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem; /* Reduzido de 1rem */
    margin-bottom: 1.28rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.dashboard-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem; /* Reduzido de 1.5rem (~20%) */
    align-items: flex-end;
}

.dashboard-form .form-group {
    display: flex;
    flex-direction: column;
}

.dashboard-form label {
    margin-bottom: 0.4rem; /* Reduzido de 0.5rem */
    font-weight: bold;
    text-align: left;
}

.dashboard-form input,
.dashboard-form select, 
.dashboard-form textarea {
    width: 100%;
    padding: 8px; /* Reduzido de 10px (~20%) */
    border: 1px solid #ccc;
    border-radius: 5px; /* Reduzido de 6px */
    box-sizing: border-box;
    font-size: 0.9rem; /* Reduzido de 1rem (~10%) */
    font-family: inherit;
    background-color: white;
}

.dashboard-form .form-section-title {
    grid-column: 1 / -1;
    font-family: 'Poppins', sans-serif;
    color: #4f46e5;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.4rem; /* Reduzido de 0.5rem */
    margin-top: 0.8rem; /* Reduzido de 1rem */
    margin-bottom: 0.4rem; /* Reduzido de 0.5rem */
    font-size: 1.08rem; /* Reduzido de 1.2rem (~10%) */
}

.dashboard-form .full-width {
    grid-column: 1 / -1;
}

.table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem; /* Reduzido de 1rem */
    min-width: 480px; /* Reduzido de 600px (~20%) */
}

.dashboard-table th, .dashboard-table td {
    padding: 0.64rem 0.8rem; /* Reduzido de 0.8rem 1rem (~20%) */
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-table th {
    background-color: #f8fafc;
    font-family: 'Poppins', sans-serif;
}

.actions-cell {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem; /* Reduzido de 0.5rem */
    justify-content: center;
    align-items: center;
}

.actions-cell-header {
    text-align: center;
}

.actions-cell button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.08rem; /* Reduzido de 1.2rem (~10%) */
    margin: 0 0.4rem; /* Reduzido de 0.5rem */
    transition: transform 0.2s ease;
}

.actions-cell button:hover {
    transform: scale(1.1); /* Mantido, mas efeito sutil */
}

.btn-edit { color: #4f46e5; }
.btn-delete { color: #dc3545; }
.btn-view-pets { color: #10b981; }

/* --- LAYOUT PRINCIPAL (SIDEBAR, CONTEÚDO) --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 208px; /* Reduzido de 260px (~20%) */
    background-color: #1e293b;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 16px; /* Reduzido de 20px (~20%) */
    text-align: center;
    border-bottom: 1px solid #334155;
}

.sidebar-logo {
    max-width: 120px; /* Reduzido de 150px (~20%) */
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 16px; /* Reduzido de 20px */
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px; /* Reduzido de 15px 20px (~20%) */
    color: #cbd5e1;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.sidebar-nav .nav-link:hover {
    background-color: #334155;
    color: #ffffff;
}

.sidebar-nav .nav-link.active-link {
    background-color: #4f46e5;
    color: #ffffff;
}

.sidebar-nav .nav-link i {
    margin-right: 12px; /* Reduzido de 15px */
    width: 16px; /* Reduzido de 20px */
    text-align: center;
}

.submenu {
  padding-left: 16px; /* Reduzido de 20px */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, background-color 0.3s;
  background-color: #0f172a;
}
.submenu.open {
  max-height: none;
  overflow: visible;
}

.submenu .nav-link {
    padding-left: 28px; /* Reduzido de 35px */
}

.sidebar-footer {
    padding: 16px; /* Reduzido de 20px */
    border-top: 1px solid #334155;
    flex-shrink: 0;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s;
}

.sidebar-footer a:hover {
    color: #ffffff;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #f1f5f9;
}

.top-bar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 24px; /* Reduzido de 15px 30px (~20%) */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px; /* Reduzido de 24px (~17%) */
    cursor: pointer;
    margin-right: 16px; /* Reduzido de 20px */
}

.main-content {
    padding: 24px; /* Reduzido de 30px (~20%) */
    flex-grow: 1;
    overflow-y: auto;
}

.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- MODAIS --- */
.modal-admin {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding-top: 48px; /* Reduzido de 60px (~20%) */
}

.modal-admin-content {
    background-color: #fefefe;
    margin: 3% auto; /* Reduzido de 5% */
    padding: 1.6rem; /* Reduzido de 2rem */
    border: 1px solid #888;
    width: 90%;
    max-width: 480px; /* Reduzido de 600px (~20%) */
    border-radius: 12px; /* Reduzido de 15px */
    position: relative;
    border-top: 4px solid #4f46e5; /* Reduzido de 5px */
}

.modal-lg {
    max-width: 640px; /* Reduzido de 800px (~20%) */
}

.close-modal-admin {
    color: #aaa;
    position: absolute;
    top: 12px; /* Reduzido de 15px */
    right: 20px; /* Reduzido de 25px */
    font-size: 24px; /* Reduzido de 28px (~14%) */
    font-weight: bold;
    cursor: pointer;
}

/* --- ESTILOS ESPECÍFICOS DE COMPONENTES --- */
.form-divider {
    grid-column: 1 / -1;
    border-top: 1px solid #e2e8f0;
    margin: 0.8rem 0; /* Reduzido de 1rem */
}

.pet-form-template {
    border: 1px solid #cbd5e1;
    border-radius: 6px; /* Reduzido de 8px */
    padding: 16px; /* Reduzido de 20px (~20%) */
    margin-bottom: 16px; /* Reduzido de 20px */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px; /* Reduzido de 20px */
    position: relative;
    background-color: #f8fafc;
}

.pet-form-template h4 {
    grid-column: 1 / -1;
    margin: 0 0 8px 0; /* Reduzido de 10px */
    font-family: 'Poppins', sans-serif;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px; /* Reduzido de 10px */
}

.btn-remove-pet {
    position: absolute;
    top: 8px; /* Reduzido de 10px */
    right: 8px; /* Reduzido de 10px */
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px; /* Reduzido de 28px (~14%) */
    height: 24px; /* Reduzido de 28px */
    font-size: 14px; /* Reduzido de 16px (~13%) */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); /* Reduzido de 220px (~20%) */
    gap: 16px; /* Reduzido de 20px */
    margin-top: 16px; /* Reduzido de 20px */
}

.pet-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px; /* Reduzido de 8px */
    padding: 12px; /* Reduzido de 15px (~20%) */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pet-card img {
    width: 96px; /* Reduzido de 120px (~20%) */
    height: 96px; /* Reduzido de 120px */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px; /* Reduzido de 15px */
    border: 2px solid #e2e8f0; /* Reduzido de 3px */
}

.pet-card-obs {
    background-color: #f1f5f9;
    border-radius: 5px; /* Reduzido de 6px */
    padding: 8px; /* Reduzido de 10px */
    margin-top: 8px; /* Reduzido de 10px */
    text-align: left;
    font-size: 11px; /* Reduzido de 13px (~15%) */
    word-break: break-word;
}

.pet-card h4 {
    margin: 0 0 8px 0; /* Reduzido de 10px */
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
}

.pet-card p {
    margin: 3px 0; /* Reduzido de 4px */
    font-size: 12px; /* Reduzido de 14px (~14%) */
    color: #475569;
}

.pet-card p strong {
    color: #334155;
}

.edit-pet-form {
    border: 1px solid #e2e8f0;
    border-radius: 6px; /* Reduzido de 8px */
    padding: 16px; /* Reduzido de 20px */
    margin-bottom: 16px; /* Reduzido de 20px */
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px; /* Reduzido de 15px 20px */
    position: relative;
    background-color: #f8fafc;
}

.modal-admin .edit-pet-form .actions-cell {
    grid-column: 1 / -1;
    display: flex !important;
    justify-content: flex-end;
    gap: 8px; /* Reduzido de 10px */
    margin-top: 0.8rem; /* Reduzido de 1rem */
    opacity: 1 !important;
    visibility: visible !important;
}

.status-badge {
    padding: 3px 8px; /* Reduzido de 4px 10px (~20%) */
    border-radius: 10px; /* Reduzido de 12px */
    font-size: 0.72rem; /* Reduzido de 0.8rem (~10%) */
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-agendado { background-color: #007bff; }
.status-realizado { background-color: #28a745; }
.status-cancelado { background-color: #dc3545; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem; /* Reduzido de 1.5rem */
}

.modal-header h2 {
    margin-bottom: 0;
}

.checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Reduzido de 200px (~20%) */
    gap: 8px; /* Reduzido de 10px */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px; /* Reduzido de 6px */
    padding: 12px; /* Reduzido de 15px */
}

.checkbox-container .placeholder-text {
    grid-column: 1 / -1;
    color: #94a3b8;
    margin: 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input {
    width: auto;
    margin-right: 8px; /* Reduzido de 10px */
}

.items-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduzido de 8px */
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eef2ff;
    padding: 6px 10px; /* Reduzido de 8px 12px (~17%) */
    border-radius: 5px; /* Reduzido de 6px */
    border-left: 3px solid #4f46e5; /* Reduzido de 4px */
}

.selected-item span {
    font-weight: 500;
}

.selected-item .item-price {
    color: #4f46e5;
    font-weight: bold;
}

.pet-servicos-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px; /* Reduzido de 8px */
    padding: 1.2rem; /* Reduzido de 1.5rem */
    margin-bottom: 1.2rem; /* Reduzido de 1.5rem */
}

.pet-servicos-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.8rem; /* Reduzido de 1rem */
    margin-bottom: 0.8rem; /* Reduzido de 1rem */
}

.pet-servicos-card-header h4 {
    margin: 0;
    font-size: 1.1rem; /* Reduzido de 1.3rem (~15%) */
    display: flex;
    align-items: center;
}

.pet-servicos-card-header h4 .fas {
    margin-right: 0.64rem; /* Reduzido de 0.8rem */
    color: #4f46e5;
}

.pet-servicos-card .dashboard-form {
    grid-template-columns: 1fr auto;
    gap: 0.8rem; /* Reduzido de 1rem */
}

.pet-servicos-card .servicos-adicionados-lista {
    list-style: none;
    padding: 0;
    grid-column: 1 / -1;
}

.pet-servicos-card .servico-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0; /* Reduzido de 0.5rem */
    border-bottom: 1px solid #f1f3f5;
}

.pet-servicos-card .servico-item:last-child {
    border-bottom: none;
}

.modal-content {
    display: grid;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
}

/* --- ESTILO PARA O ÍCONE DE VISUALIZAR SENHA --- */
.password-container {
    position: relative;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 12px; /* Reduzido de 15px */
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ajustado para telas maiores */
    gap: 1.2rem; /* Reduzido de 1.5rem (~20%) */
    margin-bottom: 1.6rem; /* Reduzido de 2rem */
}

.dashboard-columns .dashboard-section {
    display: flex;
    flex-direction: column;
}

.dashboard-columns .dashboard-section .lista-agendamentos-hoje,
.dashboard-columns .dashboard-section .chart-container {
    flex-grow: 1;
}

.servico-descricao {
    white-space: pre-wrap;
}

.lista-agendamentos-hoje {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-agendamentos-hoje li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0; /* Reduzido de 1rem (~20%) */
    border-bottom: 1px solid #e2e8f0;
}

.lista-agendamentos-hoje li:last-child {
    border-bottom: none;
}

.agendamento-info {
    display: flex;
    flex-direction: column;
}

.agendamento-info strong {
    font-size: 0.9rem; /* Reduzido de 1rem (~10%) */
    color: #334155;
}

.agendamento-info span {
    font-size: 0.81rem; /* Reduzido de 0.9rem (~10%) */
    color: #64748b;
}

.agendamento-info i {
    margin-right: 0.4rem; /* Reduzido de 0.5rem */
    color: #94a3b8;
}

.agendamento-hora {
    font-size: 0.99rem; /* Reduzido de 1.1rem (~10%) */
    font-weight: bold;
    color: #4f46e5;
    background-color: #eef2ff;
    padding: 0.24rem 0.64rem; /* Reduzido de 0.3rem 0.8rem (~20%) */
    border-radius: 16px; /* Reduzido de 20px */
}

.chart-container {
    position: relative;
    max-height: 280px; /* Reduzido de 350px (~20%) */
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-faltou { 
    background-color: #fdba74;
    color: #c2410c;
}

.actions-cell button {
    font-size: 0.99rem; /* Reduzido de 1.1rem (~10%) */
}

.btn-status-realizado {
    color: #10b981;
}

.btn-status-faltou {
    color: #f59e0b;
}

/* --- ESTILOS PARA O HISTÓRICO DO CLIENTE --- */
.timeline-container {
    margin-top: 1.2rem; /* Reduzido de 1.5rem */
    max-height: 48vh; /* Reduzido de 60vh (~20%) */
    overflow-y: auto;
    padding: 0.8rem; /* Reduzido de 1rem */
    border-top: 1px solid #e2e8f0;
}

.timeline-item {
    padding-left: 24px; /* Reduzido de 30px (~20%) */
    position: relative;
    padding-bottom: 1.6rem; /* Reduzido de 2rem */
    border-left: 2px solid #e2e8f0;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -9px; /* Ajustado proporcionalmente */
    top: 0;
    width: 16px; /* Reduzido de 20px (~20%) */
    height: 16px; /* Reduzido de 20px */
    border-radius: 50%;
    background-color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px; /* Reduzido de 10px (~20%) */
}

.timeline-date {
    font-weight: bold;
    color: #4f46e5;
    margin-bottom: 0.4rem; /* Reduzido de 0.5rem */
    display: block;
}

.timeline-content {
    background-color: #f8fafc;
    padding: 0.8rem; /* Reduzido de 1rem */
    border-radius: 6px; /* Reduzido de 8px */
    border: 1px solid #e2e8f0;
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 0.4rem; /* Reduzido de 0.5rem */
    font-size: 0.99rem; /* Reduzido de 1.1rem (~10%) */
    color: #1e293b;
}

.timeline-content p {
    margin: 0.2rem 0; /* Reduzido de 0.25rem */
    font-size: 0.81rem; /* Reduzido de 0.9rem (~10%) */
    color: #475569;
}

.servicos-list-timeline {
    list-style: none;
    padding-left: 12px; /* Reduzido de 15px */
    margin-top: 0.4rem; /* Reduzido de 0.5rem */
}

.servicos-list-timeline li {
    padding: 3px 0; /* Reduzido de 4px */
    border-bottom: 1px dashed #e2e8f0;
}

.servicos-list-timeline li:last-child {
    border-bottom: none;
}

#edit-servico-fotos-preview .preview-image {
    width: 80px !important; /* Reduzido de 100px (~20%) */
    height: 80px !important; /* Reduzido de 100px */
    object-fit: cover;
    border-radius: 6px; /* Reduzido de 8px */
}

/* --- BOTÃO DE EXCLUIR FOTO DO SERVIÇO --- */
.preview-image-wrapper {
    position: relative;
}

.btn-delete-foto-servico {
    position: absolute;
    top: -6px; /* Reduzido de -8px */
    right: -6px; /* Reduzido de -8px */
    background-color: #dc3545;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 19px; /* Reduzido de 24px (~21%) */
    height: 19px; /* Reduzido de 24px */
    font-size: 12px; /* Reduzido de 14px (~14%) */
    font-weight: bold;
    line-height: 16px; /* Ajustado proporcionalmente */
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-delete-foto-servico:hover {
    transform: scale(1.1);
    background-color: #c82333;
}

/* --- ESTILO PARA SUBMENU NÍVEL 2 --- */
.submenu-level-2 {
    background-color: #0f172a;
}

.submenu-level-2 .nav-link {
    padding-left: 40px; /* Reduzido de 50px (~20%) */
    font-size: 0.81rem; /* Reduzido de 0.9rem (~10%) */
}

.submenu-level-2 .nav-link:hover {
    background-color: #4f46e5;
}

/* --- ESTILOS PARA GERENCIAMENTO DE AGENDAMENTOS PENDENTES --- */
.status-pendente {
    background-color: #f59e0b;
    color: #78350f;
    border: 1px solid #fbbf24;
}

.actions-cell .btn-approve {
    color: #10b981;
}
.actions-cell .btn-approve:hover {
    color: #059669;
}

.actions-cell .btn-reject {
    color: #ef4444;
}
.actions-cell .btn-reject:hover {
    color: #dc2626;
}

/* Adiciona um estilo para a linha inteira quando pendente */
tr.pendente {
    background-color: #fefce8 !important;
    font-weight: bold;
}

tr.cliente-pendente {
    background-color: #fff1f2 !important;
}

tr.cliente-pendente td {
    color: #9ca3af;
}

.actions-cell button:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}
.actions-cell button:disabled:hover {
    transform: none;
}

/* --- ESTILOS PARA PRÉ-VISUALIZAÇÃO DE UPLOAD --- */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem; /* Reduzido de 1rem */
    margin-top: 0.8rem; /* Reduzido de 1rem */
    padding: 0.8rem; /* Reduzido de 1rem */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px; /* Reduzido de 8px */
    min-height: 112px; /* Reduzido de 140px (~20%) */
}

.preview-item {
    width: 96px; /* Reduzido de 120px (~20%) */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem; /* Reduzido de 0.5rem */
    position: relative;
}

.preview-item .preview-image-thumbnail {
    width: 80px; /* Reduzido de 100px (~20%) */
    height: 80px; /* Reduzido de 100px */
    object-fit: cover;
    border-radius: 6px; /* Reduzido de 8px */
    border: 2px solid #e2e8f0;
}

.preview-item .preview-file-name {
    font-size: 0.6rem; /* Reduzido de 0.75rem (~20%) */
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        height: 100%;
        z-index: 1000;
        box-shadow: 3px 0 8px rgba(0,0,0,0.2); /* Sombras menores */
    }
    .sidebar.open {
        transform: translateX(0);
    }
    #menu-toggle {
        display: block;
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-form {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 12px; /* Reduzido de 15px (~20%) */
    }
    .dashboard-section {
        padding: 1.2rem; /* Reduzido de 1.5rem (~20%) */
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
    .pet-form-template {
        grid-template-columns: 1fr;
    }
    .edit-pet-form {
        grid-template-columns: 1fr;
    }
}