.container-admin-banner {
    display: flex;
    align-items: center;
    flex-direction: column;
    /* margin: 20px; */
}

.logo-admin {
    width: 400px;
}

.logo-login-admin {
    width: 100px;
}

.logo-login-desktop {
    width: 150px;
    margin: 3rem 0;
}

/* h2{
    font-size: 24px;
} */

.container-table {
    display: flex;
    align-items: center;
    flex-direction: column;
}

table {
    width: 90%;
    margin: auto 0;
}

table,
th,
td {
    border: 1px solid #c7c7c7;
}

table th {
    padding: 11px 0 11px;
    background-color: #c7c7c7;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: left;
    padding: 8px;
    line-height: 1.6;
}

table tr {
    border: 1px solid #ddd;
}

table td {
    color: #000;
    font-size: 1.1rem;
    padding: 8px;
    background-color: #ffffff8f;
    line-height: 1.6;
}

.container-admin-banner h1 {
    margin-top: 40px;
    font-size: 2.5rem;
    color: #000;
    font-weight: bold;
    line-height: 1.2;
}

.container-lista-tatuagens {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto 0;
}

.container-lista {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: solid #000 0.5px;
    border-radius: 10px;
    padding: 10px;
    margin: 3px 0;
}

.container-lista h3 {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.4;
}

table tbody tr td a,
.botao-cadastrar,
.botao-excluir {
    padding: 3px 10px;
    border-radius: 10px;
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 5px;
    transition: 0.7s;
    border: none;
    font-size: 1.1rem;
    line-height: 1.6;
}


table tbody tr td a:hover,
.botao-cadastrar:hover,
.botao-excluir:hover {
    cursor: pointer;
    filter: saturate(150%);
}

.botao-cadastrar {
    background: #000;
    color: #fff;
    font-weight: bold;
    margin-top: 20px;
    font-size: 1.2rem;
    border-radius: 10px;
    padding: 10px 10px;
    border: none;
    line-height: 1.6;
}


.botao-editar {
    background: rebeccapurple;
    width: fit-content;
    height: 40px;
}

.botao-excluir {
    background: #480048;
    width: fit-content;
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    margin: 1.5rem 0;
    transition: color 0.3s ease;
    font-weight: bold;
}

.mobile-nav a:hover {
    color: #007bff;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

/* CSS para admin-mobile-nav */
.admin-mobile-nav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
}

.admin-mobile-nav.active {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.admin-mobile-nav a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 2rem !important;
    margin: 1.5rem 0 !important;
    transition: color 0.3s ease !important;
    font-weight: bold !important;
    border: none !important;
    outline: none !important;
}

.admin-mobile-nav a:hover {
    color: #007bff !important;
}

.admin-mobile-nav .close-btn {
    position: absolute !important;
    top: 2rem !important;
    right: 2rem !important;
    font-size: 3rem !important;
    color: #fff !important;
    cursor: pointer !important;
    font-weight: bold !important;
    border: none !important;
    outline: none !important;
}

/* HEADER FIXO */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

header.scrolled {
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header.scrolled .logtipo-black {
    width: 75px;
}

header.scrolled .logo {
    width: 400px;
}



@media (max-width: 640px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    header {
        padding: 1rem;
    }

    .logtipo-black {
        width: 70px;
    }

    .logo {
        width: 300px;
    }
}

/* RESPONSIVIDADE MOBILE PARA ADMIN */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    body {
        padding-top: 80px;
        /* Compensar header fixo */
        overflow-x: hidden;
    }

    .container-admin-banner h1 {
        font-size: 1.8rem;
        text-align: center;
        margin: 0.5rem 0;
        padding: 0 15px;
        word-wrap: break-word;
    }

    .container-table {
        padding: 0 10px;
        overflow-x: auto;
        width: 100%;
        max-width: 100vw;
    }

    /* Tornar tabela responsiva */
    table {
        width: 100%;
        font-size: 0.9rem;
        border-collapse: collapse;
    }

    table th,
    table td {
        padding: 8px 4px;
        text-align: left;
        word-wrap: break-word;
    }

    /* Esconder colunas menos importantes em mobile */
    table th:nth-child(3),
    table td:nth-child(3) {
        display: none;
    }

    /* Ajustar largura das colunas para mobile */
    table th:nth-child(1),
    table td:nth-child(1) {
        width: 30%;
    }

    table th:nth-child(2),
    table td:nth-child(2) {
        width: 20%;
    }

    table th:nth-child(4),
    table td:nth-child(4) {
        width: 25%;
    }

    table th:nth-child(5),
    table td:nth-child(5) {
        width: 12.5%;
    }

    table th:nth-child(6),
    table td:nth-child(6) {
        width: 12.5%;
    }

    /* Botões de ação menores */
    .botao-editar,
    .botao-excluir {
        padding: 6px 8px;
        font-size: 0.8rem;
        min-width: auto;
    }

    /* Botões do rodapé da tabela */
    .container-table form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
        padding: 0 10px;
    }

    .botao-cadastrar {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }
}

/* RESPONSIVIDADE EXTRA SMALL (smartphones pequenos) */
@media (max-width: 480px) {
    .container-admin-banner h1 {
        font-size: 1.5rem;
    }

    /* Ajustes específicos para cards em telas pequenas */
    .mobile-cards {
        padding: 0 10px;
    }

    .tattoo-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .tattoo-card h3 {
        font-size: 1rem;
    }

    .tattoo-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tattoo-price {
        font-size: 1rem;
    }

    .tattoo-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .tattoo-actions {
        gap: 8px;
    }

    .tattoo-actions .botao-editar,
    .tattoo-actions .botao-excluir {
        padding: 8px;
        font-size: 0.8rem;
    }

    table {
        font-size: 0.8rem;
    }

    table th,
    table td {
        padding: 6px 2px;
    }

    /* Esconder mais colunas em telas muito pequenas */
    table th:nth-child(2),
    table td:nth-child(2) {
        display: none;
    }

    /* Reorganizar larguras */
    table th:nth-child(1),
    table td:nth-child(1) {
        width: 40%;
    }

    table th:nth-child(4),
    table td:nth-child(4) {
        width: 30%;
    }

    table th:nth-child(5),
    table td:nth-child(5) {
        width: 15%;
    }

    table th:nth-child(6),
    table td:nth-child(6) {
        width: 15%;
    }

    .botao-editar,
    .botao-excluir {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    .logo-login-desktop {
        width: 100px;
    }

}

/* ESTILO PARA CARDS EM MOBILE (alternativa à tabela) */
@media (max-width: 768px) {
    .mobile-cards {
        display: none;
        /* Será ativado via JavaScript se necessário */
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .desktop-table {
        display: table;
    }

    .tattoo-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        overflow: hidden;
    }

    .tattoo-card h3 {
        margin: 0 0 10px 0;
        color: #333;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .tattoo-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tattoo-type {
        background: #007bff;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: bold;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tattoo-price {
        font-weight: bold;
        color: #28a745;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .tattoo-description {
        color: #666;
        margin-bottom: 15px;
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .tattoo-actions {
        display: flex;
        gap: 10px;
        align-items: baseline;
    }

    .tattoo-actions .botao-editar,
    .tattoo-actions .botao-excluir {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .tattoo-actions .botao-editar {
        background: #ffc107;
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tattoo-actions .botao-editar:hover {
        background: #e0a800;
    }

    .tattoo-actions .botao-excluir {
        background: #dc3545;
        color: white;
    }

    .tattoo-actions .botao-excluir:hover {
        background: #c82333;
    }

    /* Animação de entrada para cards */
    .tattoo-card {
        animation: slideInUp 0.3s ease-out;
    }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}