/* Botões principais */
.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    background: linear-gradient(45deg, #00cc6a, #00ff88);
}

/* Botões de ação na lista de produtos */
.product-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.edit-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.delete-btn {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.delete-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: translateY(-2px);
}

/* Botões do formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Estilo para o botão de adicionar produto */
.admin-actions {
    margin-bottom: 25px;
}

.admin-actions .btn-primary i {
    font-size: 1.1rem;
}

/* Botões de banimento */
.ban-btn {
    background-color: #ffc107;
    color: #000;
}

.ban-btn:hover {
    background-color: #e0a800;
}

.unban-btn {
    background-color: #28a745;
    color: #fff;
}

.unban-btn:hover {
    background-color: #218838;
}

/* Header do Admin */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(22, 23, 26, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Ajustes responsivos do header */
@media screen and (max-width: 768px) {
    nav {
        height: 60px;
        padding: 0 15px;
    }
}

/* Container principal */
main {
    padding-top: 120px; /* Espaço para o header fixo */
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Ajustes para mobile */
@media screen and (max-width: 768px) {
    main {
        padding-top: 60px;
    }
}

/* Responsividade extra para settings-card, settings-grid e tabelas */
@media screen and (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 6px;
        margin-top: 50px;
        min-width: 0;
    }
    .settings-card {
        padding: 8px 4px;
        margin-bottom: 10px;
        border-radius: 9px;
        min-width: 0;
        box-sizing: border-box;
    }
    .table-responsive {
        padding: 2px;
        margin: 0;
        width: 100vw;
        min-width: 0;
        overflow-x: auto;
    }
    .admin-table {
        width: 100%;
        min-width: 700px;
        border-collapse: separate;
        border-spacing: 0;
        color: #fff;
        background: transparent;
        font-size: 1rem;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,255,136,0.04);
    }
    .admin-table thead tr {
        background: linear-gradient(90deg, #23272a 60%, #2f3136 100%);
    }
    .admin-table th, .admin-table td {
        padding: 14px 12px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .admin-table th {
        color: #00ff88;
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: 1px;
        border-top: none;
        border-bottom: 2px solid #00ff88;
        background: rgba(47,49,54,0.7);
    }
    .admin-table tbody tr {
        background: rgba(47, 49, 54, 0.92);
        transition: background 0.2s, box-shadow 0.2s;
    }
    .admin-table tbody tr:hover {
        background: rgba(0,255,136,0.07);
        box-shadow: 0 2px 12px rgba(0,255,136,0.08);
    }
    .admin-table td {
        vertical-align: middle;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .admin-table td:last-child {
        border-bottom: none;
    }
    /* Badge visual */
    .badge {
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 0.93rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        box-shadow: 0 1px 4px rgba(0,255,136,0.08);
        border: 1.5px solid transparent;
        display: inline-block;
    }

    .badge-success {
        background: rgba(0, 255, 136, 0.13);
        color: #00ff88;
        border-color: #00ff88;
    }

    .badge-danger {
        background: rgba(255, 51, 51, 0.13);
        color: #ff3333;
        border-color: #ff3333;
    }

    /* Ações */
    .product-actions, .action-buttons {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: flex-end;
    }

    .action-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        background: rgba(255,255,255,0.04);
        color: #fff;
        font-size: 1.1rem;
        box-shadow: 0 1px 4px rgba(0,255,136,0.04);
    }

    .action-btn.edit-btn {
        background: rgba(0, 255, 136, 0.13);
        color: #00ff88;
    }
    .action-btn.edit-btn:hover {
        background: #00ff88;
        color: #18191c;
    }

    .action-btn.ban-btn {
        background: rgba(255, 193, 7, 0.13);
        color: #ffc107;
    }
    .action-btn.ban-btn:hover {
        background: #ffc107;
        color: #18191c;
    }

    .action-btn.unban-btn {
        background: rgba(40, 167, 69, 0.13);
        color: #28a745;
    }
    .action-btn.unban-btn:hover {
        background: #28a745;
        color: #fff;
    }

    .action-btn.delete-btn {
        background: rgba(255, 71, 87, 0.13);
        color: #ff4757;
    }
    .action-btn.delete-btn:hover {
        background: #ff4757;
        color: #fff;
    }

    /* Ícones de ação */
    .action-btn i {
        font-size: 1.1rem !important;
        vertical-align: middle;
    }

    /* Header e card visual */
    .settings-card {
        background: linear-gradient(120deg, #23272a 70%, #18191c 100%);
        border-radius: 16px;
        padding: 32px 20px 24px 20px;
        margin-bottom: 32px;
        box-shadow: 0 4px 24px rgba(0,255,136,0.06);
        border: 1.5px solid rgba(0,255,136,0.08);
    }

    .page-header {
        margin-bottom: 32px;
        border-bottom: 2px solid #00ff88;
        padding-bottom: 18px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .page-header h1 {
        color: #00ff88;
        font-size: 2rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: 1px;
        text-shadow: 0 2px 12px rgba(0,255,136,0.08);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Responsividade: rolagem horizontal em telas pequenas */
    @media screen and (max-width: 900px) {
        .admin-table {
            min-width: 600px;
            font-size: 0.97rem;
        }
        .table-responsive {
            padding: 5px;
            margin: 0;
            width: 100vw;
            min-width: 0;
            overflow-x: auto;
        }
        .settings-card {
            padding: 18px 6px 14px 6px;
            margin-bottom: 18px;
            border-radius: 12px;
        }
        .page-header {
            margin-bottom: 18px;
            padding-bottom: 10px;
        }
        .page-header h1 {
            font-size: 1.3rem;
        }
    }

    @media screen and (max-width: 600px) {
        .admin-table {
            min-width: 480px;
            font-size: 0.95rem;
        }
        .table-responsive {
            padding: 2px;
        }
        .settings-card {
            padding: 8px 2px 8px 2px;
            margin-bottom: 10px;
            border-radius: 8px;
        }
        .page-header {
            margin-bottom: 10px;
            padding-bottom: 6px;
        }
        .page-header h1 {
            font-size: 1.05rem;
        }
    }