* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: #0f172a;
    color: #e5e7eb;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, #1d4ed8, transparent 30%),
        linear-gradient(135deg, #020617, #0f172a);
}

.login-card {
    width: 380px;
    background: #111827;
    border: 1px solid #1f2937;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.login-card h1 {
    margin-bottom: 8px;
    font-size: 26px;
    margin: 20px;
}

.login-card p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #cbd5e1;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #020617;
    color: #e5e7eb;
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button, .btn {
    display: inline-block;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    background: #456cc2;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondary {
    background: #334155;
}

.btn-danger {
    background: #dc2626;
}

.alert {
    padding: 12px;
    border-radius: 10px;
    background: #7f1d1d;
    margin-bottom: 15px;
}

.app {
    display: flex;
    min-height: 100vh;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 34px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: #2563eb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.brand h1 {
    font-size: 20px;
}

.brand span {
    color: #94a3b8;
    font-size: 13px;
}

.sidebar nav {
    display: grid;
    gap: 10px;
}

.sidebar nav a {
    padding: 12px;
    border-radius: 10px;
    color: #cbd5e1;
}

.sidebar nav a:hover {
    background: #1e293b;
}

.content {
    margin-left: 260px;

    width: calc(100% - 260px);
    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 26px;

    transition: all 0.3s ease;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
    color: #94a3b8;
}

.topbar span {
    display: block;
    font-size: 13px;
}

.page-title {
    margin-bottom: 20px;
}

.page-title h2 {
    font-size: 28px;
}

.page-title p {
    color: #94a3b8;
    margin-top: 6px;
}

.grid {
    display: grid;
    gap: 18px;
    align-items: start;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.card h3 {
    margin-bottom: 14px;
}

.client-card {
    transition: .2s;
}

.client-card:hover {
    transform: translateY(-3px);
    border-color: #2563eb;
}

.client-card p {
    color: #94a3b8;
    margin-top: 7px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

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

.table th {
    color: #93c5fd;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.tabs a {
    background: #1e293b;
    padding: 10px 14px;
    border-radius: 10px;
    color: #cbd5e1;
}

.accordion {
    padding: 0;
    overflow: hidden;
}

.accordion-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.accordion-header:hover {
    background: #1e293b;
}

.accordion-header h3 {
    margin: 0;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition:
        max-height 0.35s ease,
        padding 0.35s ease;
}

.accordion.active .accordion-body {
    max-height: 2000px;
    padding: 0 20px 20px 20px;
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .app {
        display: block;
    }
    .sidebar {
        width: 100%;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

.link-detalhe {
    color: #60a5fa;
    font-weight: bold;
}

.link-detalhe:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.detalhe-card {
    display: grid;
    gap: 14px;
}

.detalhe-linha {
    padding: 12px;
    border-bottom: 1px solid #1f2937;
}

.detalhe-linha strong {
    display: block;
    color: #93c5fd;
    margin-bottom: 5px;
}

.detalhe-linha span {
    color: #e5e7eb;
}

.dashboard-link {
    transition: 0.2s;
    display: block;
}

.dashboard-link:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 260px;
    height: 100vh;

    background: #020617;
    border-right: 1px solid #1e293b;

    padding: 24px;

    overflow: hidden;

    transition: width 0.3s ease, padding 0.3s ease;

    z-index: 1000;
}

/* Botão colado no canto superior direito da navbar */
.toggle-btn {
    position: absolute;
    top: 12px;
    right: 10px;

    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
}

/* Sidebar recolhida */
.sidebar.hide {
    width: 45px;
    padding: 24px 8px;
}

.sidebar.hide ~ .content {
    margin-left: 45px;
    width: calc(100% - 45px);
}

/* Esconde os textos/conteúdo, mas mantém o botão */
.sidebar.hide .brand,
.sidebar.hide nav {
    display: none;
}

/* Ajusta botão quando recolhida */
.sidebar.hide .toggle-btn {
    right: 12px;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    margin-right: 10px;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8; /* cinza */
}

.sidebar nav a:hover .menu-icon svg {
    stroke: #60a5fa; /* azul no hover */
}

.preview-imagens, /*Começo inserir imagens manutenção */
.galeria-status {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.preview-img,
.imagem-status {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.imagem-status:hover {
    opacity: 0.8;
}

.modal-imagem {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.modal-imagem img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.fechar-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.info-editavel {
    width: 100%;
}

.info-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campo-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6ea8ff;
    transition: 0.2s ease;
}

.btn-edit svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.3;
}

.btn-edit:hover {
    color: #9dc2ff;
    transform: scale(1.1);
}
